chore: configure eslint rules

This commit is contained in:
鲁树人 2023-05-18 00:03:55 +01:00
parent ba5901d1eb
commit 6299302ff9
2 changed files with 12 additions and 0 deletions

3
.eslintignore Normal file
View File

@ -0,0 +1,3 @@
dist/
node_modules/
coverage/

View File

@ -14,5 +14,14 @@ module.exports = {
plugins: ['react-refresh'], plugins: ['react-refresh'],
rules: { rules: {
'react-refresh/only-export-components': 'warn', 'react-refresh/only-export-components': 'warn',
'@typescript-eslint/no-unused-vars': [
'error',
{
varsIgnorePattern: '^_',
argsIgnorePattern: '^_',
destructuredArrayIgnorePattern: '^_',
ignoreRestSiblings: true,
},
],
}, },
}; };