Skip to content

Commit

Permalink
update no-unused-vars rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ryota-murakami committed Jul 22, 2023
1 parent 43c4a7b commit 9caacc4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,14 @@ module.exports = {
'@typescript-eslint/consistent-type-imports': 'warn',
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',
'@typescript-eslint/no-unused-expressions': 'error',
// Allow foo(unuseArg, useValue) & bar(_, useValue) & { foo, ...coords } = data; https://typescript-eslint.io/rules/no-unused-vars/
'@typescript-eslint/no-unused-vars': [
'error',
{ args: 'after-used', ignoreRestSiblings: true },
{
args: 'after-used',
argsIgnorePattern: '^_',
ignoreRestSiblings: true,
},
],
'@typescript-eslint/prefer-as-const': 'warn',
eqeqeq: ['error', 'always'],
Expand Down

0 comments on commit 9caacc4

Please sign in to comment.