From dc41f60f52cc566fe5fce3e66fb50ba195d7de11 Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Mon, 10 May 2021 14:50:19 +0200 Subject: [PATCH] feat(scripts/lint-staged): handle `.[cm]js` files --- scripts/lint-staged | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lint-staged b/scripts/lint-staged index 4c0d0d480..16338fbb0 100755 --- a/scripts/lint-staged +++ b/scripts/lint-staged @@ -34,7 +34,7 @@ const gitDiffIndex = () => gitDiff('index', ['--cached', 'HEAD']) // ----------------------------------------------------------------------------- -const files = gitDiffIndex().filter(_ => _.endsWith('.js')) +const files = gitDiffIndex().filter(_ => _.endsWith('.cjs') || _.endsWith('.js') || _.endsWith('.mjs')) if (files.length === 0) { return }