ESLint: Set no-unused-vars rule to error
This rule should output error instead of just a warning.
This commit is contained in:
parent
4d051eecde
commit
67a0f86dde
3 changed files with 9 additions and 3 deletions
|
|
@ -111,7 +111,13 @@ module.exports = defineConfig([
|
|||
'@typescript-eslint/no-require-imports': 'error',
|
||||
'disable-autofix/@typescript-eslint/no-unnecessary-condition': 'warn',
|
||||
'no-unused-vars': 'off', // disable js rule in favor of @typescript-eslint's rule
|
||||
'@typescript-eslint/no-unused-vars': 'warn',
|
||||
'@typescript-eslint/no-unused-vars': [
|
||||
'error',
|
||||
{
|
||||
argsIgnorePattern: '^_',
|
||||
varsIgnorePattern: '^_',
|
||||
},
|
||||
],
|
||||
'jsx-a11y/no-autofocus': 'off',
|
||||
},
|
||||
settings: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue