fix: only disable no-unused-vars on vue file

This commit is contained in:
Anthony Fu 2021-03-16 00:30:01 +08:00
parent 31505698e4
commit 67595932e4
2 changed files with 5 additions and 1 deletions

View File

@ -12,7 +12,7 @@ module.exports = {
'@typescript-eslint/type-annotation-spacing': ['error', {}], '@typescript-eslint/type-annotation-spacing': ['error', {}],
'no-unused-vars': 'off', 'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'off', '@typescript-eslint/no-unused-vars': 'error',
'no-redeclare': 'off', 'no-redeclare': 'off',
'@typescript-eslint/no-redeclare': 'error', '@typescript-eslint/no-redeclare': 'error',

View File

@ -6,6 +6,10 @@ module.exports = {
parserOptions: { parserOptions: {
parser: '@typescript-eslint/parser', parser: '@typescript-eslint/parser',
}, },
rules: {
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'off',
},
}, },
], ],
extends: [ extends: [