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', 'dist',
'LICENSE*', 'LICENSE*',
'output', 'output',
'packages-lock.json', 'coverage',
'pnpm-lock.yaml',
'public', 'public',
'temp', 'temp',
'packages-lock.json',
'pnpm-lock.yaml',
'yarn.lock', 'yarn.lock',
'__snapshots__',
'!.github', '!.github',
'!.vitepress', '!.vitepress',
'!.vscode', '!.vscode',

View File

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