Skip to content

Commit 25d68ac

Browse files
committed
fix: disable import/order ESLint rule
The import/order rule was too strict and tedious to maintain. Disabling it globally to improve developer experience.
1 parent bcc56e7 commit 25d68ac

File tree

1 file changed

+6
-24
lines changed

1 file changed

+6
-24
lines changed

eslint.config.js

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import js from '@eslint/js';
2-
import globals from 'globals';
3-
import reactHooks from 'eslint-plugin-react-hooks';
4-
import reactRefresh from 'eslint-plugin-react-refresh';
52
import tseslint from '@typescript-eslint/eslint-plugin';
63
import tsparser from '@typescript-eslint/parser';
7-
import react from 'eslint-plugin-react';
8-
import jsxA11y from 'eslint-plugin-jsx-a11y';
94
import importPlugin from 'eslint-plugin-import';
5+
import jsxA11y from 'eslint-plugin-jsx-a11y';
6+
import react from 'eslint-plugin-react';
7+
import reactHooks from 'eslint-plugin-react-hooks';
8+
import reactRefresh from 'eslint-plugin-react-refresh';
9+
import globals from 'globals';
1010

1111
export default [
1212
{
@@ -113,25 +113,7 @@ export default [
113113
],
114114

115115
// Import rules
116-
'import/order': [
117-
'error',
118-
{
119-
groups: [
120-
'builtin',
121-
'external',
122-
'internal',
123-
['parent', 'sibling'],
124-
'index',
125-
'object',
126-
'type',
127-
],
128-
'newlines-between': 'always',
129-
alphabetize: {
130-
order: 'asc',
131-
caseInsensitive: true,
132-
},
133-
},
134-
],
116+
'import/order': 'off', // Disabled - too strict and tedious to maintain
135117
'import/no-duplicates': 'error',
136118
'import/no-unresolved': 'error',
137119
'import/named': 'error',

0 commit comments

Comments
 (0)