From 9570ced4623f45308ab1d900eba91d377200fa60 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 21 Jul 2023 14:18:28 -0700 Subject: [PATCH] eslint: Replace no-duplicate-imports rule with import/no-duplicates. Signed-off-by: Anders Kaseorg --- .eslintrc.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 1ea0a71816..f31c3af72d 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -50,6 +50,7 @@ "import/extensions": "error", "import/first": "error", "import/newline-after-import": "error", + "import/no-duplicates": "error", "import/no-self-import": "error", "import/no-unresolved": "off", "import/no-useless-path-segments": "error", @@ -64,7 +65,6 @@ "no-catch-shadow": "error", "no-constant-condition": ["error", {"checkLoops": false}], "no-div-regex": "error", - "no-duplicate-imports": "error", "no-else-return": "error", "no-eq-null": "error", "no-eval": "error", @@ -169,7 +169,6 @@ }, "rules": { // Disable base rule to avoid conflict - "no-duplicate-imports": "off", "no-use-before-define": "off", "@typescript-eslint/consistent-type-definitions": ["error", "type"], @@ -179,7 +178,6 @@ {"allowExpressions": true} ], "@typescript-eslint/member-ordering": "error", - "@typescript-eslint/no-duplicate-imports": "error", "@typescript-eslint/no-non-null-assertion": "off", "@typescript-eslint/no-parameter-properties": "error", "@typescript-eslint/no-unnecessary-condition": "off",