From: Jérôme Benoit Date: Sun, 23 Oct 2022 08:17:31 +0000 (+0200) Subject: Refine lint-staged configuration X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=31688ebd341c01ea9029dcf57f4c77fe92aa455c;p=benchmarks-js.git Refine lint-staged configuration Signed-off-by: Jérôme Benoit --- diff --git a/.lintstagedrc.js b/.lintstagedrc.js index b8747b0..1ee58bf 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -1,4 +1,8 @@ module.exports = { - '*.{js,jsx}': ['prettier --write', 'standard --fix', 'eslint --cache --fix'], + '*.{js,jsx,mjs,cjs}': [ + 'prettier --write', + 'standard --fix', + 'eslint --cache --fix' + ], '*.{json,md,yml,yaml}': ['prettier --write'] }