Skip to content

Commit

Permalink
feat(javascript): updated no-unused-vars for ignore patterns and igno…
Browse files Browse the repository at this point in the history
…re object spread
  • Loading branch information
mlaursen committed Feb 18, 2021
1 parent b198a31 commit abd7a85
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,20 @@ module.exports = {
files: ['**/__tests__/**', '**/*.test.*'],
extends: ['plugin:jest/recommended'],
},
{
files: ['**/*.js', '**/*.jsx'],
rules: {
'no-unused-vars': [
'error',
{
vars: 'all',
varsIgnorePattern: '^_',
args: 'after-used',
varsIgnorePattern: '^_',
ignoreRestSiblings: true,
},
],
},
},
],
};

0 comments on commit abd7a85

Please sign in to comment.