Skip to content

Commit 58c517c

Browse files
authored
refactor(lintstaged): resilience on cspell error reporting (#6335)
We don't want `cspell` to throw an error in case that it's being run by `lintstaged` and the current files shouldn't be checked due to it's matching the files pattern to get ignored.
1 parent f3b6f87 commit 58c517c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.config/.lintstagedrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ export default {
1313
() => 'npm install --package-lock-only --ignore-scripts',
1414
'npm run lint:package-json'
1515
],
16-
'*': 'cspell --config .config/cspell.config.ts'
16+
'*': 'cspell --config .config/cspell.config.ts --no-must-find-files'
1717
};

0 commit comments

Comments
 (0)