@alexlit/lint-kit 203.10.0 → 203.11.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-eslint",
|
|
3
|
-
"version": "154.
|
|
3
|
+
"version": "154.7.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Sharable ESLint configuration",
|
|
6
6
|
"keywords": [
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"eslint": "^10.9.1",
|
|
50
50
|
"eslint-config-prettier": "^10.1.8",
|
|
51
51
|
"eslint-plugin-de-morgan": "^2.1.3",
|
|
52
|
-
"eslint-plugin-jsdoc": "^64.3.
|
|
52
|
+
"eslint-plugin-jsdoc": "^64.3.5",
|
|
53
53
|
"eslint-plugin-perfectionist": "^5.11.0",
|
|
54
54
|
"eslint-plugin-pinia": "^0.4.2",
|
|
55
55
|
"eslint-plugin-prettier": "^5.5.6",
|
|
56
|
-
"eslint-plugin-regexp": "^3.
|
|
56
|
+
"eslint-plugin-regexp": "^3.3.0",
|
|
57
57
|
"eslint-plugin-sonarjs": "^4.2.0",
|
|
58
58
|
"eslint-plugin-tailwindcss": "^4.4.0",
|
|
59
59
|
"eslint-plugin-unicorn": "^74.0.0",
|
|
@@ -67,16 +67,17 @@ export const javascript = defineConfig([
|
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
message:
|
|
70
|
-
"
|
|
70
|
+
"Используйте методы массивов (.forEach, .map и т.д.) вместо цикла 'for'.",
|
|
71
71
|
selector: 'ForStatement',
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
message:
|
|
75
|
-
"
|
|
75
|
+
"Используйте методы объектов (.keys, .values и т.д.) вместо цикла 'for...in'.",
|
|
76
76
|
selector: 'ForInStatement',
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
|
-
message:
|
|
79
|
+
message:
|
|
80
|
+
"Используйте методы массивов(.forEach, .map и т.д.) вместо цикла 'for...of'.",
|
|
80
81
|
selector: 'ForOfStatement',
|
|
81
82
|
},
|
|
82
83
|
],
|
|
@@ -13,13 +13,11 @@ export const perfectionist = defineConfig([
|
|
|
13
13
|
'warn',
|
|
14
14
|
{
|
|
15
15
|
customGroups: [
|
|
16
|
-
//
|
|
17
|
-
{ elementNamePattern: ['^#
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
{ elementNamePattern: ['
|
|
21
|
-
{ elementNamePattern: ['^#server*'], groupName: 'server' },
|
|
22
|
-
{ elementNamePattern: ['^#shared*'], groupName: 'shared' },
|
|
16
|
+
// hash
|
|
17
|
+
{ elementNamePattern: ['^#'], groupName: 'hash' },
|
|
18
|
+
|
|
19
|
+
// @@/
|
|
20
|
+
{ elementNamePattern: ['^@@/'], groupName: 'double-at' },
|
|
23
21
|
|
|
24
22
|
// universal
|
|
25
23
|
{ elementNamePattern: ['^@/api'], groupName: 'universal-api' },
|
|
@@ -62,13 +60,11 @@ export const perfectionist = defineConfig([
|
|
|
62
60
|
'type-import',
|
|
63
61
|
['value-builtin', 'value-external'],
|
|
64
62
|
|
|
65
|
-
// nuxt
|
|
66
|
-
'
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
'
|
|
70
|
-
'server',
|
|
71
|
-
'shared',
|
|
63
|
+
// hash (nuxt)
|
|
64
|
+
'hash',
|
|
65
|
+
|
|
66
|
+
// @@/
|
|
67
|
+
'double-at',
|
|
72
68
|
|
|
73
69
|
// universal
|
|
74
70
|
'universal-api',
|
|
@@ -90,7 +86,7 @@ export const perfectionist = defineConfig([
|
|
|
90
86
|
'ts-equals-import',
|
|
91
87
|
'unknown',
|
|
92
88
|
],
|
|
93
|
-
internalPattern: ['
|
|
89
|
+
internalPattern: ['^@@/.*', '^@/.*'],
|
|
94
90
|
type: 'natural',
|
|
95
91
|
},
|
|
96
92
|
],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-stylelint",
|
|
3
|
-
"version": "61.1.
|
|
3
|
+
"version": "61.1.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Stylelint config",
|
|
6
6
|
"keywords": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@double-great/stylelint-a11y": "^3.5.2",
|
|
40
40
|
"@morev/stylelint-plugin": "^0.6.1",
|
|
41
|
-
"postcss": "^8.5.
|
|
41
|
+
"postcss": "^8.5.28",
|
|
42
42
|
"postcss-html": "^2.0.0",
|
|
43
43
|
"prettier": "^3.9.6",
|
|
44
44
|
"stylelint": "17.14.1",
|