@itcase/lint 1.0.48 → 1.1.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.
|
@@ -5,6 +5,7 @@ const customGroups = {
|
|
|
5
5
|
label: '^label.*',
|
|
6
6
|
desc: '^desc.*',
|
|
7
7
|
description: '^description.*',
|
|
8
|
+
status: '^status.*',
|
|
8
9
|
fill: '^fill.*',
|
|
9
10
|
border: '^border.*',
|
|
10
11
|
shadow: '^shadow.*',
|
|
@@ -14,7 +15,7 @@ const customGroups = {
|
|
|
14
15
|
text: '^text.*',
|
|
15
16
|
|
|
16
17
|
colorTokens:
|
|
17
|
-
'(?:accent|primary|secondary|tertiary|quaternary|surface|error|warning|success|danger|disabled)',
|
|
18
|
+
'(?:accent|primary|secondary|tertiary|quaternary|surface|error|warning|success|info|danger|disabled)',
|
|
18
19
|
|
|
19
20
|
primary: '^.*Primary.*',
|
|
20
21
|
secondary: '^.*Secondary.*',
|
|
@@ -23,6 +24,7 @@ const customGroups = {
|
|
|
23
24
|
surface: '^.*Surface.*',
|
|
24
25
|
error: '^.*Error.*',
|
|
25
26
|
warning: '^.*Warning.*',
|
|
27
|
+
info: '^.*Info.*',
|
|
26
28
|
success: '^.*Success.*',
|
|
27
29
|
danger: '^.*Danger.*',
|
|
28
30
|
disabled: '^.*Disabled.*',
|
|
@@ -20,6 +20,15 @@ const props = [
|
|
|
20
20
|
'justify',
|
|
21
21
|
'align',
|
|
22
22
|
|
|
23
|
+
'size',
|
|
24
|
+
'sizeXXL',
|
|
25
|
+
'sizeXL',
|
|
26
|
+
'sizeL',
|
|
27
|
+
'sizeM',
|
|
28
|
+
'sizeS',
|
|
29
|
+
'sizeXS',
|
|
30
|
+
'sizeXXS',
|
|
31
|
+
|
|
23
32
|
'fill',
|
|
24
33
|
|
|
25
34
|
'position',
|
|
@@ -34,13 +43,24 @@ const props = [
|
|
|
34
43
|
'isMobile',
|
|
35
44
|
'isTablet',
|
|
36
45
|
'isDesktop',
|
|
37
|
-
'children',
|
|
38
46
|
'config',
|
|
39
47
|
|
|
40
48
|
'path',
|
|
41
49
|
'destination',
|
|
42
50
|
'template',
|
|
43
51
|
|
|
52
|
+
'title',
|
|
53
|
+
'headTitle',
|
|
54
|
+
'headerTitle',
|
|
55
|
+
'subtitle',
|
|
56
|
+
'label',
|
|
57
|
+
'desc',
|
|
58
|
+
'description',
|
|
59
|
+
'prompts',
|
|
60
|
+
|
|
61
|
+
'actions',
|
|
62
|
+
'status',
|
|
63
|
+
|
|
44
64
|
'url',
|
|
45
65
|
'method',
|
|
46
66
|
'data',
|
|
@@ -48,6 +68,8 @@ const props = [
|
|
|
48
68
|
'timeout',
|
|
49
69
|
'username',
|
|
50
70
|
'password',
|
|
71
|
+
'credentials',
|
|
72
|
+
'params',
|
|
51
73
|
'code',
|
|
52
74
|
|
|
53
75
|
// Indents and margins
|
|
@@ -126,17 +148,8 @@ const props = [
|
|
|
126
148
|
'letterSpacing',
|
|
127
149
|
'text',
|
|
128
150
|
'includeFontPadding',
|
|
129
|
-
'textAlignVertical',
|
|
130
151
|
'writingDirection',
|
|
131
152
|
|
|
132
|
-
'title',
|
|
133
|
-
'subtitle',
|
|
134
|
-
'label',
|
|
135
|
-
'desc',
|
|
136
|
-
'description',
|
|
137
|
-
'prompts',
|
|
138
|
-
'actions',
|
|
139
|
-
|
|
140
153
|
// Colors
|
|
141
154
|
'colorTokens',
|
|
142
155
|
'primary',
|
|
@@ -146,6 +159,7 @@ const props = [
|
|
|
146
159
|
'surface',
|
|
147
160
|
'error',
|
|
148
161
|
'warning',
|
|
162
|
+
'info',
|
|
149
163
|
'success',
|
|
150
164
|
'danger',
|
|
151
165
|
'disabled',
|
|
@@ -192,6 +206,7 @@ const props = [
|
|
|
192
206
|
'on',
|
|
193
207
|
'onSuccess',
|
|
194
208
|
'onError',
|
|
209
|
+
'children',
|
|
195
210
|
]
|
|
196
211
|
|
|
197
212
|
export { props }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/lint",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"author": "ITCase",
|
|
5
5
|
"description": "Code style linter configuration presets",
|
|
6
6
|
"engines": {
|
|
@@ -33,9 +33,11 @@
|
|
|
33
33
|
"registry": "https://registry.npmjs.org/"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^8.29.0",
|
|
37
|
+
"@typescript-eslint/parser": "^8.29.0",
|
|
36
38
|
"@babel/eslint-parser": "^7.27.0",
|
|
37
39
|
"@babel/eslint-plugin": "^7.27.0",
|
|
38
|
-
"@eslint/compat": "^1.2.
|
|
40
|
+
"@eslint/compat": "^1.2.8",
|
|
39
41
|
"@eslint/js": "^9.23.0",
|
|
40
42
|
"@eslint/markdown": "^6.3.0",
|
|
41
43
|
"@ianvs/prettier-plugin-sort-imports": "^4.4.1",
|
|
@@ -62,7 +64,7 @@
|
|
|
62
64
|
"stylelint-no-unsupported-browser-features": "^8.0.4",
|
|
63
65
|
"stylelint-order": "^6.0.4",
|
|
64
66
|
"stylelint-prettier": "^5.0.3",
|
|
65
|
-
"typescript-eslint": "^8.
|
|
67
|
+
"typescript-eslint": "^8.29.0"
|
|
66
68
|
},
|
|
67
69
|
"devDependencies": {
|
|
68
70
|
"@commitlint/cli": "^19.8.0",
|
package/stylelint/index.js
CHANGED
|
@@ -13,7 +13,11 @@ export default {
|
|
|
13
13
|
'ios/**/*',
|
|
14
14
|
'android/**/*',
|
|
15
15
|
],
|
|
16
|
-
plugins: [
|
|
16
|
+
plugins: [
|
|
17
|
+
'stylelint-prettier',
|
|
18
|
+
'stylelint-order',
|
|
19
|
+
'stylelint-no-unsupported-browser-features',
|
|
20
|
+
],
|
|
17
21
|
rules: {
|
|
18
22
|
'prettier/prettier': true,
|
|
19
23
|
'plugin/no-unsupported-browser-features': [
|
|
@@ -48,7 +52,6 @@ export default {
|
|
|
48
52
|
'custom-property-pattern': '[a-z].*',
|
|
49
53
|
'block-no-empty': null,
|
|
50
54
|
'color-function-notation': 'legacy',
|
|
51
|
-
'comment-empty-line-before': 'never',
|
|
52
55
|
'declaration-empty-line-before': 'never',
|
|
53
56
|
'function-url-quotes': 'always',
|
|
54
57
|
'hue-degree-notation': 'number',
|
|
@@ -186,6 +189,13 @@ export default {
|
|
|
186
189
|
'cursor',
|
|
187
190
|
],
|
|
188
191
|
],
|
|
192
|
+
'comment-empty-line-before': [
|
|
193
|
+
'always',
|
|
194
|
+
{
|
|
195
|
+
except: ['first-nested'],
|
|
196
|
+
ignore: ['after-comment'],
|
|
197
|
+
},
|
|
198
|
+
],
|
|
189
199
|
'rule-empty-line-before': [
|
|
190
200
|
'always',
|
|
191
201
|
{
|
|
@@ -217,7 +227,13 @@ export default {
|
|
|
217
227
|
'at-rule-no-unknown': [
|
|
218
228
|
true,
|
|
219
229
|
{
|
|
220
|
-
ignoreAtRules: [
|
|
230
|
+
ignoreAtRules: [
|
|
231
|
+
'import-glob',
|
|
232
|
+
'for',
|
|
233
|
+
'each',
|
|
234
|
+
'mixin',
|
|
235
|
+
'define-mixin',
|
|
236
|
+
],
|
|
221
237
|
},
|
|
222
238
|
],
|
|
223
239
|
},
|