Skip to content

Commit

Permalink
feat: change unused var to error (#18)
Browse files Browse the repository at this point in the history
Co-authored-by: kanary <[email protected]>
  • Loading branch information
Kanary159357 and kanary authored Apr 29, 2024
1 parent 9f05b77 commit 7604c5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .changeset/nervous-spiders-float.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@channel.io/eslint-config": patch
---

change no-unused-vars warn to error
11 changes: 1 addition & 10 deletions packages/eslint-config/rules/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,7 @@ module.exports = {
{ allowShortCircuit: true, enforceForJSX: true },
],
'no-unused-labels': 'warn',
'no-unused-vars': [
'warn',
{
vars: 'all',
args: 'none',
ignoreRestSiblings: true,
caughtErrors: 'all',
caughtErrorsIgnorePattern: '^_',
},
],
'no-unused-vars': ['error', { ignoreRestSiblings: true }],
'no-useless-computed-key': 'warn',
'no-useless-concat': 'warn',
'no-useless-constructor': 'warn',
Expand Down

0 comments on commit 7604c5c

Please sign in to comment.