@alexlit/config-eslint 70.2.0 → 70.4.0
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/package.json +3 -3
- package/plugins/import.js +57 -2
- package/plugins/simple-import-sort.js +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-eslint",
|
|
3
|
-
"version": "70.
|
|
3
|
+
"version": "70.4.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Eslint config",
|
|
6
6
|
"keywords": [
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"eslint-plugin-ext": "^0.1.0",
|
|
51
51
|
"eslint-plugin-filenames": "^1.3.2",
|
|
52
52
|
"eslint-plugin-import": "^2.29.0",
|
|
53
|
-
"eslint-plugin-jsdoc": "^46.
|
|
53
|
+
"eslint-plugin-jsdoc": "^46.9.0",
|
|
54
54
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
55
55
|
"eslint-plugin-lit": "^1.10.1",
|
|
56
56
|
"eslint-plugin-lit-a11y": "^4.1.1",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
|
74
74
|
"eslint-plugin-spellcheck": "^0.0.20",
|
|
75
75
|
"eslint-plugin-sql": "^2.5.0",
|
|
76
|
-
"eslint-plugin-testing-library": "^6.1.
|
|
76
|
+
"eslint-plugin-testing-library": "^6.1.2",
|
|
77
77
|
"eslint-plugin-typescript-sort-keys": "^3.1.0",
|
|
78
78
|
"eslint-plugin-unicorn": "^49.0.0",
|
|
79
79
|
"eslint-plugin-unused-imports": "^3.0.0",
|
package/plugins/import.js
CHANGED
|
@@ -43,7 +43,51 @@ module.exports = {
|
|
|
43
43
|
|
|
44
44
|
'import/first': 'error',
|
|
45
45
|
'import/no-mutable-exports': 'error',
|
|
46
|
-
|
|
46
|
+
|
|
47
|
+
'import/order': [
|
|
48
|
+
'error',
|
|
49
|
+
{
|
|
50
|
+
alphabetize: { caseInsensitive: true, order: 'asc' },
|
|
51
|
+
|
|
52
|
+
groups: [
|
|
53
|
+
'builtin',
|
|
54
|
+
'external',
|
|
55
|
+
'internal',
|
|
56
|
+
'parent',
|
|
57
|
+
'sibling',
|
|
58
|
+
'index',
|
|
59
|
+
],
|
|
60
|
+
|
|
61
|
+
'newlines-between': 'always',
|
|
62
|
+
|
|
63
|
+
pathGroups: [
|
|
64
|
+
{ group: 'internal', pattern: '{@,~}/core/**', position: 'after' },
|
|
65
|
+
{ group: 'internal', pattern: '{@,~}/modules/**', position: 'after' },
|
|
66
|
+
// FSD
|
|
67
|
+
{
|
|
68
|
+
group: 'internal',
|
|
69
|
+
pattern: '{@,~}/processes/**',
|
|
70
|
+
position: 'after',
|
|
71
|
+
},
|
|
72
|
+
{ group: 'internal', pattern: '{@,~}/pages/**', position: 'after' },
|
|
73
|
+
{ group: 'internal', pattern: '{@,~}/widgets/**', position: 'after' },
|
|
74
|
+
{
|
|
75
|
+
group: 'internal',
|
|
76
|
+
pattern: '{@,~}/features/**',
|
|
77
|
+
position: 'after',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
group: 'internal',
|
|
81
|
+
pattern: '{@,~}/entities/**',
|
|
82
|
+
position: 'after',
|
|
83
|
+
},
|
|
84
|
+
{ group: 'internal', pattern: '{@,~}/shared/**', position: 'after' },
|
|
85
|
+
],
|
|
86
|
+
|
|
87
|
+
pathGroupsExcludedImportTypes: ['builtin'],
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
|
|
47
91
|
'import/prefer-default-export': 'off',
|
|
48
92
|
},
|
|
49
93
|
|
|
@@ -66,7 +110,18 @@ module.exports = {
|
|
|
66
110
|
],
|
|
67
111
|
},
|
|
68
112
|
|
|
69
|
-
node: {
|
|
113
|
+
node: {
|
|
114
|
+
extensions: [
|
|
115
|
+
'.cjs',
|
|
116
|
+
'.cts',
|
|
117
|
+
'.d.ts',
|
|
118
|
+
'.js',
|
|
119
|
+
'.json',
|
|
120
|
+
'.mjs',
|
|
121
|
+
'.mts',
|
|
122
|
+
'.ts',
|
|
123
|
+
],
|
|
124
|
+
},
|
|
70
125
|
},
|
|
71
126
|
},
|
|
72
127
|
};
|