Skip to content

Commit

Permalink
fix: import order rules (#20)
Browse files Browse the repository at this point in the history
* fix: import order rules

* version update

* v0.1.0-beta.16

* remove unused property

* remove default values

* vue and vitest should be always on top
  • Loading branch information
ChaituVR authored Jul 23, 2024
1 parent 5500c47 commit 5b398b4
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 9 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.15"
"version": "0.1.0-beta.16"
}
41 changes: 40 additions & 1 deletion packages/eslint-config-base/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,45 @@ module.exports = {
'always',
{ exceptAfterSingleLine: true }
],
'import/no-extraneous-dependencies': 'error'
'import/no-extraneous-dependencies': 'error',
'sort-imports': [
'error',
{
ignoreCase: true,
ignoreDeclarationSort: true
}
],
'import/order': [
'error',
{
groups: ['builtin', 'external', 'internal', 'type'],
pathGroups: [
{
pattern: 'vue',
group: 'builtin',
position: 'before'
},
{
pattern: 'vitest',
group: 'builtin',
position: 'before'
},
{
pattern: '@vue/**',
group: 'builtin',
position: 'before'
},
{
pattern: '@/**',
group: 'internal'
}
],
'newlines-between': 'never',
alphabetize: {
order: 'asc',
caseInsensitive: true
}
}
]
}
};
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.15",
"version": "0.1.0-beta.16",
"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.15",
"version": "0.1.0-beta.16",
"publishConfig": {
"access": "public"
},
Expand All @@ -10,7 +10,7 @@
"lint": "eslint ."
},
"dependencies": {
"@snapshot-labs/eslint-config-base": "^0.1.0-beta.15",
"@snapshot-labs/eslint-config-base": "^0.1.0-beta.16",
"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.15",
"version": "0.1.0-beta.16",
"publishConfig": {
"access": "public"
},
Expand All @@ -10,6 +10,6 @@
"lint": "eslint ."
},
"dependencies": {
"@snapshot-labs/eslint-config-base": "^0.1.0-beta.15"
"@snapshot-labs/eslint-config-base": "^0.1.0-beta.16"
}
}
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.15",
"version": "0.1.0-beta.16",
"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.15",
"version": "0.1.0-beta.16",
"publishConfig": {
"access": "public"
},
Expand Down

0 comments on commit 5b398b4

Please sign in to comment.