mikey-pro 10.3.7 → 10.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/eslint-config/base-config.js +12 -8
- package/package.json +1 -1
|
@@ -150,10 +150,20 @@ export const baseConfig = {
|
|
|
150
150
|
],
|
|
151
151
|
'import-x/no-useless-path-segments': 'error',
|
|
152
152
|
'import-x/no-webpack-loader-syntax': 'error',
|
|
153
|
+
// Must agree with simple-import-sort/imports (node: builtins, packages,
|
|
154
|
+
// then aliases like @/, then relative with parent/sibling/index merged).
|
|
155
|
+
// simple-import-sort owns ordering within a group (no alphabetize here:
|
|
156
|
+
// it would put '.' before '../x', the opposite of simple-import-sort), and
|
|
157
|
+
// scoped packages (@scope/pkg) sort among externals, so no '@*' pathGroup.
|
|
153
158
|
'import-x/order': [
|
|
154
159
|
'error',
|
|
155
160
|
{
|
|
156
|
-
|
|
161
|
+
groups: [
|
|
162
|
+
'builtin',
|
|
163
|
+
'external',
|
|
164
|
+
'internal',
|
|
165
|
+
['parent', 'sibling', 'index'],
|
|
166
|
+
],
|
|
157
167
|
'newlines-between': 'always',
|
|
158
168
|
pathGroups: [
|
|
159
169
|
{
|
|
@@ -161,15 +171,9 @@ export const baseConfig = {
|
|
|
161
171
|
pattern: 'node:*',
|
|
162
172
|
position: 'before',
|
|
163
173
|
},
|
|
164
|
-
{
|
|
165
|
-
group: 'external',
|
|
166
|
-
pattern: '@*',
|
|
167
|
-
position: 'after',
|
|
168
|
-
},
|
|
169
174
|
{
|
|
170
175
|
group: 'internal',
|
|
171
|
-
pattern: '
|
|
172
|
-
position: 'after',
|
|
176
|
+
pattern: '{@,~}/**',
|
|
173
177
|
},
|
|
174
178
|
],
|
|
175
179
|
pathGroupsExcludedImportTypes: ['builtin'],
|