Skip to content

Commit

Permalink
Change options on no-unused-vars rule
Browse files Browse the repository at this point in the history
  • Loading branch information
burtek committed Apr 8, 2022
1 parent 74db224 commit 36d31c3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions eslint-config-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,11 @@ module.exports = {
'@typescript-eslint/no-shadow': 'error',
'@typescript-eslint/no-throw-literal': 'error',
'@typescript-eslint/no-unused-expressions': 'error',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/no-unused-vars': ['error', {
argsIgnorePattern: '^_',
destructuredArrayIgnorePattern: '^_',
ignoreRestSiblings: true
}],
'@typescript-eslint/no-use-before-define': ['error', {
'functions': false,
'classes': true,
Expand Down Expand Up @@ -394,7 +398,11 @@ module.exports = {
'no-shadow-restricted-names': 'error',
'no-undef': 'error',
'no-undef-init': 'error',
'no-unused-vars': 'error',
'no-unused-vars': ['error', {
argsIgnorePattern: '^_',
destructuredArrayIgnorePattern: '^_',
ignoreRestSiblings: true
}],
'no-use-before-define': ['error', {
'functions': false,
'classes': true,
Expand Down

0 comments on commit 36d31c3

Please sign in to comment.