Skip to content

Commit a5b2f34

Browse files
committed
chore: add no-warn-ignore in eslint on lintstaged files
1 parent 4b4a7e3 commit a5b2f34

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.lintstagedrc.mjs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
export default {
22
'*': 'prettier --check --ignore-unknown --write',
3-
'*.{md,markdown,mdx}': ['remark --frail', 'eslint --max-warnings 0'],
4-
'*.{html,yml,json,jsonc,json5}': 'eslint --max-warnings 0',
3+
'*.{md,markdown,mdx}': [
4+
'remark --frail',
5+
'eslint --max-warnings 0 --no-warn-ignored',
6+
],
7+
'*.{html,yml,json,jsonc,json5}': 'eslint --max-warnings 0 --no-warn-ignored',
58
'*.{js,mjs,cjs,jsx,ts,mts,cts,tsx}': [
6-
'eslint --max-warnings 0',
9+
'eslint --max-warnings 0 --no-warn-ignored',
710
// unit test
811
],
912
}

0 commit comments

Comments
 (0)