Skip to content

Commit

Permalink
Add argsIgnorePattern to unused-vars (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
georgekaran authored Mar 8, 2022
1 parent 2066146 commit 5fc360d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/configs/javascript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,13 @@ export const javascript = {
},
],
'no-unused-expressions': 'error',
'no-unused-vars': 'error',
'no-unused-vars': [
'error',
{
args: 'after-used',
ignoreRestSiblings: true,
},
],
'no-restricted-syntax': [
'error',
'ForInStatement',
Expand Down
8 changes: 7 additions & 1 deletion src/configs/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ export const typescript = {
indent: ['error', 4, {
SwitchCase: 1,
}],
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/no-unused-vars': [
'error',
{
args: 'after-used',
ignoreRestSiblings: true,
},
],
'no-unused-vars': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'object-curly-spacing': 'off',
Expand Down

0 comments on commit 5fc360d

Please sign in to comment.