Skip to content

Commit

Permalink
fix: only disable no-unused-vars on vue file
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Mar 15, 2021
1 parent 3150569 commit 6759593
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/typescript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
'@typescript-eslint/type-annotation-spacing': ['error', {}],

'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'no-redeclare': 'off',
'@typescript-eslint/no-redeclare': 'error',

Expand Down
4 changes: 4 additions & 0 deletions packages/vue/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ module.exports = {
parserOptions: {
parser: '@typescript-eslint/parser',
},
rules: {
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'off',
},
},
],
extends: [
Expand Down

0 comments on commit 6759593

Please sign in to comment.