Skip to content

Commit

Permalink
feat: add no-unused-vars exceptions
Browse files Browse the repository at this point in the history
Co-authored-by: Azalea Colburn <[email protected]>
  • Loading branch information
rutmanz and azaleacolburn authored Sep 4, 2024
1 parent af7b300 commit 38c1f1c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ export default tseslint.config(
{
rules: {
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
'prefer-const': 'warn',
'@typescript-eslint/ban-ts-comment': ['warn', { 'ts-ignore': 'allow-with-description' }]
}
Expand Down

0 comments on commit 38c1f1c

Please sign in to comment.