chore: configure eslint rules

This commit is contained in:
鲁树人 2023-05-18 00:03:55 +01:00
parent 448cbbfd74
commit 3298b29dbf
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'],
rules: {
'react-refresh/only-export-components': 'warn',
'@typescript-eslint/no-unused-vars': [
'error',
{
varsIgnorePattern: '^_',
argsIgnorePattern: '^_',
destructuredArrayIgnorePattern: '^_',
ignoreRestSiblings: true,
},
],
},
};