Skip to content

Commit

Permalink
feat: config order group (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
haiweilian authored Jan 5, 2024
1 parent b285d2c commit 149c933
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .changeset/flat-knives-fetch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@bfehub/eslint-config-basic": patch
"@bfehub/create-lint": patch
"@bfehub/eslint-config-react": patch
"@bfehub/eslint-config-typescript": patch
"@bfehub/eslint-config-vue": patch
"@bfehub/stylelint-config-basic": patch
---

config order group
17 changes: 17 additions & 0 deletions packages/eslint-config-basic/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,23 @@ module.exports = {
'import/order': [
'error',
{
pathGroups: [
{
pattern: '@/**',
group: 'external',
position: 'after',
},
{
pattern: '#/**',
group: 'external',
position: 'after',
},
{
pattern: '~/**',
group: 'external',
position: 'after',
},
],
alphabetize: {
order: 'asc',
caseInsensitive: true,
Expand Down

0 comments on commit 149c933

Please sign in to comment.