Skip to content

Commit

Permalink
fix: eslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Enubia committed Aug 5, 2024
1 parent e5c6bb3 commit 3502783
Showing 1 changed file with 26 additions and 25 deletions.
51 changes: 26 additions & 25 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,32 @@ export default antfu({
curly: ['error', 'all'],
'import/order': 'off',
'unused-imports/no-unused-imports': 'warn',
'perfectionist/sort-imports': ['error', {
type: 'natural',
order: 'asc',
groups: [
'customTypes',
['builtin-type', 'type'],
'builtin',
'external',
'internal-type',
'internal',
['parent-type', 'sibling-type', 'index-type'],
['parent', 'sibling', 'index'],
'side-effect',
'object',
'style',
'unknown',
],
'newlines-between': 'always',
'internal-pattern': [
'#components/**',
'#shared/**',
'#layouts/**',
'#lib/**',
],
}],
// disabled for now due to "should NOT have additional properties." error
// 'perfectionist/sort-imports': ['error', {
// type: 'natural',
// order: 'asc',
// groups: [
// 'customTypes',
// ['builtin-type', 'type'],
// 'builtin',
// 'external',
// 'internal-type',
// 'internal',
// ['parent-type', 'sibling-type', 'index-type'],
// ['parent', 'sibling', 'index'],
// 'side-effect',
// 'object',
// 'style',
// 'unknown',
// ],
// 'newlines-between': 'always',
// 'internal-pattern': [
// '#components/**',
// '#shared/**',
// '#layouts/**',
// '#lib/**',
// ],
// }],
},

stylistic: {
Expand Down

0 comments on commit 3502783

Please sign in to comment.