From dba98ab7edd3281c0a3c71967ec5b5ccc1db1665 Mon Sep 17 00:00:00 2001 From: Sarin Udompanish Date: Fri, 23 Sep 2022 16:55:50 +0700 Subject: [PATCH] fix(configurations): move import extension eslint rule to local env --- .eslintrc | 5 ++++- packages/configurations/typescript.eslint-config.js | 1 - packages/elements/.eslintrc | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.eslintrc b/.eslintrc index f379c5ed8e..123bb97d84 100644 --- a/.eslintrc +++ b/.eslintrc @@ -5,10 +5,13 @@ "project": "./tsconfig.json" }, "rules": { - "@typescript-eslint/no-namespace": 0 + "@typescript-eslint/no-namespace": 0, + "import/extensions": ["error", "always"] }, "ignorePatterns": [ "packages/**/lib", + "packages/**/scripts", + "*.config.js", "__test__", "*.md" ] // .eslintignore resolves relative to working dir, this is needed to ignore files in workspaces diff --git a/packages/configurations/typescript.eslint-config.js b/packages/configurations/typescript.eslint-config.js index 2355f4b922..24063bad9a 100644 --- a/packages/configurations/typescript.eslint-config.js +++ b/packages/configurations/typescript.eslint-config.js @@ -15,7 +15,6 @@ module.exports = { extraFileExtensions: ['.html'], }, rules: { - 'import/extensions': ['error', 'always'], '@typescript-eslint/unbound-method': 0, 'valid-jsdoc': [ 2, diff --git a/packages/elements/.eslintrc b/packages/elements/.eslintrc index dd703949b1..017576895e 100644 --- a/packages/elements/.eslintrc +++ b/packages/elements/.eslintrc @@ -3,6 +3,7 @@ "project": "./tsconfig.json" }, "ignorePatterns": [ + "cli.js", "./**/__demo__", "./**/__test__/**", "./**/__snapshots__/**"