From 872bb84502dbc3cdc5774d07a5d5047435d1c43d Mon Sep 17 00:00:00 2001 From: Soybean Date: Fri, 15 Jul 2022 10:09:47 +0800 Subject: [PATCH] =?UTF-8?q?chore(projects):=20=E6=9B=B4=E6=96=B0eslint?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 58928dda..9331284d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -212,6 +212,7 @@ module.exports = { ignores: ['index'] } ], + '@typescript-eslint/consistent-type-imports': ['error', { prefer: 'type-imports', disallowTypeAnnotations: false }], '@typescript-eslint/no-empty-interface': [ 'error', { @@ -221,7 +222,10 @@ module.exports = { '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-non-null-assertion': 'off', '@typescript-eslint/no-shadow': 'error', - '@typescript-eslint/no-unused-vars': ['warn', { ignoreRestSiblings: true, varsIgnorePattern: '^_' }], + '@typescript-eslint/no-unused-vars': [ + 'error', + { vars: 'all', args: 'all', ignoreRestSiblings: false, varsIgnorePattern: '^_', argsIgnorePattern: '^_' } + ], '@typescript-eslint/no-use-before-define': ['error', { classes: true, functions: false, typedefs: false }] } };