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 }