Skip to content

Commit

Permalink
fix: Prefer no duplicate imports and no type imports (#21)
Browse files Browse the repository at this point in the history
* fix: Prefer no duplicate imports and no type imports

* v0.1.0-beta.17
  • Loading branch information
ChaituVR authored Jul 24, 2024
1 parent 5b398b4 commit 89bf7dc
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "0.1.0-beta.16"
"version": "0.1.0-beta.17"
}
5 changes: 5 additions & 0 deletions packages/eslint-config-base/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-base/package.json
Original file line number Diff line number Diff line change
@@ -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"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config-vue/package.json
Original file line number Diff line number Diff line change
@@ -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"
},
Expand All @@ -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"
}
}
4 changes: 2 additions & 2 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@snapshot-labs/eslint-config",
"version": "0.1.0-beta.16",
"version": "0.1.0-beta.17",
"publishConfig": {
"access": "public"
},
Expand All @@ -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"
}
}
2 changes: 1 addition & 1 deletion packages/eslint-nuxt/package.json
Original file line number Diff line number Diff line change
@@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/prettier-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@snapshot-labs/prettier-config",
"version": "0.1.0-beta.16",
"version": "0.1.0-beta.17",
"publishConfig": {
"access": "public"
},
Expand Down

0 comments on commit 89bf7dc

Please sign in to comment.