From 7ece5595a8388099b3ae56fd15a5e311fb6a7ef1 Mon Sep 17 00:00:00 2001 From: strawberry-choco Date: Tue, 15 Oct 2024 13:55:08 +0200 Subject: [PATCH] disable import-x/namespace rule (#244) Signed-off-by: Kangrui Johann Ye --- package.json | 2 +- packages/eslint-plugin-angular/package.json | 2 +- packages/eslint-plugin-node/package.json | 2 +- packages/eslint-plugin-react/package.json | 2 +- packages/eslint-plugin-typescript/package.json | 2 +- packages/eslint-plugin-typescript/src/configs/import.ts | 2 ++ packages/eslint-plugin-vue/package.json | 2 +- 7 files changed, 8 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index f563846..7bd21ba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflight/eslint-plugin", - "version": "1.0.0-rc6", + "version": "1.0.0-rc7", "private": true, "volta": { "node": "20.12.2", diff --git a/packages/eslint-plugin-angular/package.json b/packages/eslint-plugin-angular/package.json index 5383bba..83ca4e3 100644 --- a/packages/eslint-plugin-angular/package.json +++ b/packages/eslint-plugin-angular/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflight/eslint-plugin-angular", - "version": "1.0.0-rc6", + "version": "1.0.0-rc7", "description": "Cloudflight eslint-plugin & eslint-config for angular", "volta": { "extends": "../../package.json" diff --git a/packages/eslint-plugin-node/package.json b/packages/eslint-plugin-node/package.json index ccd3329..ec66f96 100644 --- a/packages/eslint-plugin-node/package.json +++ b/packages/eslint-plugin-node/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflight/eslint-plugin-node", - "version": "1.0.0-rc6", + "version": "1.0.0-rc7", "description": "Cloudflight eslint-plugin & eslint-config for node", "volta": { "extends": "../../package.json" diff --git a/packages/eslint-plugin-react/package.json b/packages/eslint-plugin-react/package.json index 709e217..24fe8c4 100644 --- a/packages/eslint-plugin-react/package.json +++ b/packages/eslint-plugin-react/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflight/eslint-plugin-react", - "version": "1.0.0-rc6", + "version": "1.0.0-rc7", "description": "Cloudflight eslint-plugin & eslint-config for React", "volta": { "extends": "../../package.json" diff --git a/packages/eslint-plugin-typescript/package.json b/packages/eslint-plugin-typescript/package.json index 8a96b4c..afab348 100644 --- a/packages/eslint-plugin-typescript/package.json +++ b/packages/eslint-plugin-typescript/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflight/eslint-plugin-typescript", - "version": "1.0.0-rc6", + "version": "1.0.0-rc7", "description": "Cloudflight eslint-plugin & eslint-config for typescript", "volta": { "extends": "../../package.json" diff --git a/packages/eslint-plugin-typescript/src/configs/import.ts b/packages/eslint-plugin-typescript/src/configs/import.ts index c2d0d88..714555a 100644 --- a/packages/eslint-plugin-typescript/src/configs/import.ts +++ b/packages/eslint-plugin-typescript/src/configs/import.ts @@ -3,6 +3,8 @@ import {TSESLint} from '@typescript-eslint/utils'; const pluginPrefix = 'import-x'; export const importEslintRules: TSESLint.Linter.RulesRecord = { + // computationally expensive and checked by typescript already + [`${pluginPrefix}/namespace`]: 'off', [`${pluginPrefix}/first`]: ['error'], [`${pluginPrefix}/no-absolute-path`]: ['error'], [`${pluginPrefix}/no-cycle`]: ['error', {ignoreExternal: true}], diff --git a/packages/eslint-plugin-vue/package.json b/packages/eslint-plugin-vue/package.json index 65ae1f9..ef913d5 100644 --- a/packages/eslint-plugin-vue/package.json +++ b/packages/eslint-plugin-vue/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflight/eslint-plugin-vue", - "version": "1.0.0-rc6", + "version": "1.0.0-rc7", "description": "Cloudflight eslint-plugin & eslint-config for vue", "volta": { "extends": "../../package.json"