From b6a2f14a952bf582125b43925316dc18e896d9d8 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Tue, 26 Nov 2024 14:54:13 +0000 Subject: [PATCH] ci: remove extraneous imports lint rule as it doesnt work in monorepo setup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - it seems to be disabled by default for actual production .ts files; but the rule is in "error" mode for spec files. - The rule doesn't seem to properly support mono-repos when configured properly. i.e. it only considers the top-level package.json — hence doesn't deal with cross-workspace deps. --- .eslintrc.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index f9727d18dd44..62a36e1d072d 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -75,7 +75,6 @@ "import/newline-after-import": "error", "import/no-absolute-path": "error", "import/no-duplicates": "error", - "import/no-extraneous-dependencies": ["off", { "devDependencies": false }], "import/no-unassigned-import": ["error", { "allow": ["symbol-observable"] }], "import/order": [ "error", @@ -142,7 +141,6 @@ { "files": ["!packages/**", "**/*_spec.ts"], "rules": { - "import/no-extraneous-dependencies": ["error", { "devDependencies": true }], "max-lines-per-function": "off", "no-case-declarations": "off", "no-console": "off"