-
Assuming this const lintStagedConfig = {
'{src,tests}/**/*.ts': ['eslint --fix', () => 'tsc --noEmit'],
'**/*.{ts,js,json,yaml}': 'prettier --write',
'**/*': [
'inflint -c ./inflint.config.cjs',
'cspell -c ./cspell.json --no-progress --no-summary --no-must-find-files --file-list',
],
'src/**/*': 'vitest related --run',
};
module.exports = lintStagedConfig; How should I configure CSpell here? I'm not sure why isn't it working. |
Beta Was this translation helpful? Give feedback.
Answered by
nschonni
Apr 21, 2023
Replies: 1 comment 1 reply
-
I think the call is just |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tal-rofe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think the call is just
cspell lint --no-must-find-files
. lint-stage will call it for each file, so I don't think file-list would work, and the--no-must-find-files
is an option specifically on thelint
command