Skip to content

Commit 9a3561a

Browse files
committedAug 15, 2022
chore: 更新 ESLint 规则, 允许 _ 开始的变量未使用
1 parent e482ab5 commit 9a3561a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎.eslintrc.js

+9
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ module.exports = {
2929
'prettier',
3030
],
3131
rules: {
32+
'no-unused-vars': 'off',
33+
'@typescript-eslint/no-unused-vars': [
34+
'warn',
35+
{
36+
argsIgnorePattern: '^_',
37+
varsIgnorePattern: '^_',
38+
caughtErrorsIgnorePattern: '^_',
39+
},
40+
],
3241
'react/prop-types': 'off',
3342
},
3443
},

0 commit comments

Comments
 (0)
Please sign in to comment.