From 89bf7dc8fa17be08dd8ef9752e465bc001667b96 Mon Sep 17 00:00:00 2001 From: Chaitanya Date: Wed, 24 Jul 2024 16:18:55 +0530 Subject: [PATCH] fix: Prefer no duplicate imports and no type imports (#21) * fix: Prefer no duplicate imports and no type imports * v0.1.0-beta.17 --- lerna.json | 2 +- packages/eslint-config-base/index.js | 5 +++++ packages/eslint-config-base/package.json | 2 +- packages/eslint-config-vue/package.json | 4 ++-- packages/eslint-config/package.json | 4 ++-- packages/eslint-nuxt/package.json | 2 +- packages/prettier-config/package.json | 2 +- 7 files changed, 13 insertions(+), 8 deletions(-) diff --git a/lerna.json b/lerna.json index 1bba8cf..791a5a5 100644 --- a/lerna.json +++ b/lerna.json @@ -1,4 +1,4 @@ { "$schema": "node_modules/lerna/schemas/lerna-schema.json", - "version": "0.1.0-beta.16" + "version": "0.1.0-beta.17" } diff --git a/packages/eslint-config-base/index.js b/packages/eslint-config-base/index.js index 30ef1a1..36b6648 100644 --- a/packages/eslint-config-base/index.js +++ b/packages/eslint-config-base/index.js @@ -10,6 +10,11 @@ module.exports = { sourceType: 'module' }, rules: { + 'import/no-duplicates': ['error', { 'prefer-inline': true }], + '@typescript-eslint/consistent-type-imports': [ + 'error', + { prefer: 'no-type-imports' } + ], 'prettier/prettier': 'error', 'no-console': 'off', 'prefer-template': 'error', diff --git a/packages/eslint-config-base/package.json b/packages/eslint-config-base/package.json index 5c28ee2..df643c0 100644 --- a/packages/eslint-config-base/package.json +++ b/packages/eslint-config-base/package.json @@ -1,6 +1,6 @@ { "name": "@snapshot-labs/eslint-config-base", - "version": "0.1.0-beta.16", + "version": "0.1.0-beta.17", "publishConfig": { "access": "public" }, diff --git a/packages/eslint-config-vue/package.json b/packages/eslint-config-vue/package.json index 26784ac..8dfa605 100644 --- a/packages/eslint-config-vue/package.json +++ b/packages/eslint-config-vue/package.json @@ -1,6 +1,6 @@ { "name": "@snapshot-labs/eslint-config-vue", - "version": "0.1.0-beta.16", + "version": "0.1.0-beta.17", "publishConfig": { "access": "public" }, @@ -10,7 +10,7 @@ "lint": "eslint ." }, "dependencies": { - "@snapshot-labs/eslint-config-base": "^0.1.0-beta.16", + "@snapshot-labs/eslint-config-base": "^0.1.0-beta.17", "eslint-plugin-vue": "^9.18.1" } } diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index 016f698..ddab392 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -1,6 +1,6 @@ { "name": "@snapshot-labs/eslint-config", - "version": "0.1.0-beta.16", + "version": "0.1.0-beta.17", "publishConfig": { "access": "public" }, @@ -10,6 +10,6 @@ "lint": "eslint ." }, "dependencies": { - "@snapshot-labs/eslint-config-base": "^0.1.0-beta.16" + "@snapshot-labs/eslint-config-base": "^0.1.0-beta.17" } } diff --git a/packages/eslint-nuxt/package.json b/packages/eslint-nuxt/package.json index d6ebb81..6b226f3 100644 --- a/packages/eslint-nuxt/package.json +++ b/packages/eslint-nuxt/package.json @@ -1,6 +1,6 @@ { "name": "@snapshot-labs/eslint-config-nuxt", - "version": "0.1.0-beta.16", + "version": "0.1.0-beta.17", "publishConfig": { "access": "public" }, diff --git a/packages/prettier-config/package.json b/packages/prettier-config/package.json index e9a8548..c17b331 100644 --- a/packages/prettier-config/package.json +++ b/packages/prettier-config/package.json @@ -1,6 +1,6 @@ { "name": "@snapshot-labs/prettier-config", - "version": "0.1.0-beta.16", + "version": "0.1.0-beta.17", "publishConfig": { "access": "public" },