Skip to content

Commit b68d48b

Browse files
committed
fix(prettier/eslint): move import sorting to eslint
1 parent df8643b commit b68d48b

File tree

4 files changed

+17
-23
lines changed

4 files changed

+17
-23
lines changed

configs/eslint.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,22 @@ export default [
2828
rules: {
2929
'react-hooks/rules-of-hooks': 'error',
3030
'react-hooks/exhaustive-deps': 'warn',
31+
'import/no-duplicates': ['warn', { 'prefer-inline': true }],
32+
'import/order': [
33+
'warn',
34+
{
35+
alphabetize: { order: 'asc', caseInsensitive: true },
36+
pathGroups: [{ pattern: '#*/**', group: 'internal' }],
37+
groups: [
38+
'builtin',
39+
'external',
40+
'internal',
41+
'parent',
42+
'sibling',
43+
'index',
44+
],
45+
},
46+
],
3147
},
3248
},
3349

configs/prettier.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ export default {
2828
},
2929
},
3030
],
31-
plugins: ['prettier-plugin-tailwindcss', 'prettier-plugin-organize-imports'],
31+
plugins: ['prettier-plugin-tailwindcss'],
3232
tailwindAttributes: ['class', 'className', 'ngClass', '.*[cC]lassName'],
3333
tailwindFunctions: ['clsx', 'cn'],
34-
organizeImportsSkipDestructiveCodeActions: true,
3534
}

package-lock.json

Lines changed: 0 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
"eslint-plugin-import-x": "^0.5.0",
4545
"eslint-plugin-react-hooks": "^4.6.2",
4646
"globals": "^15.3.0",
47-
"prettier-plugin-organize-imports": "^3.2.4",
4847
"prettier-plugin-tailwindcss": "^0.5.14",
4948
"tslib": "^2.6.2"
5049
},

0 commit comments

Comments
 (0)