From 14a15605f7da01c003b709792a47f976dcd14c17 Mon Sep 17 00:00:00 2001 From: Ai Ling Date: Wed, 12 Oct 2022 13:07:23 +0800 Subject: [PATCH] [eslint] Replace no-shadow with typescript no-shadow --- packages/eslint-config-tih/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/eslint-config-tih/index.js b/packages/eslint-config-tih/index.js index 8ee2fa69..3894879c 100644 --- a/packages/eslint-config-tih/index.js +++ b/packages/eslint-config-tih/index.js @@ -43,7 +43,7 @@ module.exports = { 'no-else-return': [ERROR, { allowElseIf: false }], 'no-extra-boolean-cast': ERROR, 'no-lonely-if': ERROR, - 'no-shadow': ERROR, + 'no-shadow': OFF, 'no-unused-vars': OFF, // Use @typescript-eslint/no-unused-vars instead. 'object-shorthand': ERROR, 'one-var': [ERROR, 'never'], @@ -100,6 +100,7 @@ module.exports = { '@typescript-eslint/no-for-in-array': ERROR, '@typescript-eslint/no-non-null-assertion': OFF, '@typescript-eslint/no-unused-vars': [ERROR, { argsIgnorePattern: '^_' }], + '@typescript-eslint/no-shadow': ERROR, '@typescript-eslint/prefer-optional-chain': ERROR, '@typescript-eslint/require-array-sort-compare': ERROR, '@typescript-eslint/restrict-plus-operands': ERROR,