From 22f779c5e6d764077c481d4f9ea2ca1748e55968 Mon Sep 17 00:00:00 2001 From: Eric Cornelissen Date: Thu, 19 Nov 2020 22:38:38 +0100 Subject: [PATCH] Update ESLint configuration Remove the "no-shadow": "off" override and replace it by enabling "@typescript-eslint/no-shadow" in the "rules" section, following the typescript-eslint docs: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-shadow.md#how-to-use --- .eslintrc.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 0a324905f..fb276cf31 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -29,6 +29,8 @@ "no-async-foreach/no-async-foreach": "error", "no-console": "off", "no-sequences": "error", + "no-shadow": "off", + "@typescript-eslint/no-shadow": ["error"], "one-var": ["error", "never"] }, "overrides": [{ @@ -48,8 +50,7 @@ "@typescript-eslint/require-await": "off", "@typescript-eslint/restrict-template-expressions": "off", "func-style": "off", - "github/no-then": "off", - "no-shadow": "off" + "github/no-then": "off" } }] }