feat: improve no-unused-vars rule

This commit is contained in:
Anthony Fu 2022-03-11 05:55:22 +08:00
parent 625e845c80
commit 2e962a2785
2 changed files with 5 additions and 3 deletions

View File

@ -18,11 +18,13 @@ module.exports = {
'dist',
'LICENSE*',
'output',
'packages-lock.json',
'pnpm-lock.yaml',
'coverage',
'public',
'temp',
'packages-lock.json',
'pnpm-lock.yaml',
'yarn.lock',
'__snapshots__',
'!.github',
'!.vitepress',
'!.vscode',

View File

@ -25,7 +25,7 @@ module.exports = {
'indent': 'off',
'@typescript-eslint/indent': ['error', 2],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'no-redeclare': 'off',
'@typescript-eslint/no-redeclare': 'error',
'no-use-before-define': 'off',