@alexlit/config-eslint 70.1.2 → 70.3.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 +6 -6
- 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.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Eslint config",
|
|
6
6
|
"keywords": [
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@intlify/eslint-plugin-vue-i18n": "^2.0.0",
|
|
37
|
-
"@tanstack/eslint-plugin-query": "^5.0
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
39
|
-
"@typescript-eslint/parser": "^6.
|
|
40
|
-
"eslint": "^8.
|
|
37
|
+
"@tanstack/eslint-plugin-query": "^5.6.0",
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "^6.10.0",
|
|
39
|
+
"@typescript-eslint/parser": "^6.10.0",
|
|
40
|
+
"eslint": "^8.53.0",
|
|
41
41
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
42
42
|
"eslint-config-prettier": "^9.0.0",
|
|
43
43
|
"eslint-define-config": "^1.24.1",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"eslint-plugin-regexp": "^2.1.1",
|
|
68
68
|
"eslint-plugin-security": "^1.7.1",
|
|
69
69
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
70
|
-
"eslint-plugin-sonarjs": "^0.
|
|
70
|
+
"eslint-plugin-sonarjs": "^0.23.0",
|
|
71
71
|
"eslint-plugin-sort-class-members": "^1.19.0",
|
|
72
72
|
"eslint-plugin-sort-destructure-keys": "^1.5.0",
|
|
73
73
|
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
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
|
};
|