Skip to content

Commit

Permalink
Allow prefixing unused variables with underscore for eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Discusser committed Oct 21, 2024
1 parent 69053d9 commit 858e006
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,18 @@ export default tseslint.config(
},
{
ignores: ['build/', '.svelte-kit/', 'dist/']
},
{
rules: {
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_'
}
]
}
}
);

0 comments on commit 858e006

Please sign in to comment.