Skip to content

Commit 1a43266

Browse files
committed
feat: update ESLint config for better code quality
Added new rules to enforce code quality and consistency. This includes sorting JSX props, handling unknown DOM properties, and more.
1 parent 61abc8e commit 1a43266

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

packages/config-eslint/rules/common.js

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,31 +25,24 @@ module.exports = {
2525
'import/order': [
2626
'warn',
2727
{
28-
alphabetize: {
29-
order: 'asc',
30-
orderImportKind: 'asc',
31-
caseInsensitive: true,
32-
},
3328
groups: [
34-
'builtin', // Built-in Node.js modules
35-
'external', // Third-party libraries
36-
'internal', // Internal modules (if any)
37-
'parent', // Imports from parent directories
38-
'sibling', // Imports from sibling directories
39-
'index', // Imports from index files
40-
'object', // Namespace imports
41-
'type', // Type imports
29+
'builtin', // Node.js built-in modules
30+
'external', // Packages
31+
'internal', // Aliased modules
32+
'parent', // Relative parent
33+
'sibling', // Relative sibling
34+
'index', // Relative index
4235
],
43-
named: true,
4436
'newlines-between': 'never',
4537
pathGroups: [
4638
{
47-
pattern: '@/**', // Internal paths
39+
pattern: '@/**',
4840
group: 'internal',
4941
},
5042
],
5143
},
5244
],
45+
5346
/** Prevents fallthrough in switch statements but allows empty cases */
5447
'no-fallthrough': [
5548
'error',

0 commit comments

Comments
 (0)