@itcase/lint 1.0.46 → 1.0.49

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',
@@ -41,6 +50,18 @@ const props = [
41
50
  'destination',
42
51
  'template',
43
52
 
53
+ 'title',
54
+ 'headTitle',
55
+ 'headerTitle',
56
+ 'subtitle',
57
+ 'label',
58
+ 'desc',
59
+ 'description',
60
+ 'prompts',
61
+
62
+ 'actions',
63
+ 'status',
64
+
44
65
  'url',
45
66
  'method',
46
67
  'data',
@@ -48,6 +69,8 @@ const props = [
48
69
  'timeout',
49
70
  'username',
50
71
  'password',
72
+ 'credentials',
73
+ 'params',
51
74
  'code',
52
75
 
53
76
  // Indents and margins
@@ -126,17 +149,8 @@ const props = [
126
149
  'letterSpacing',
127
150
  'text',
128
151
  'includeFontPadding',
129
- 'textAlignVertical',
130
152
  'writingDirection',
131
153
 
132
- 'title',
133
- 'subtitle',
134
- 'label',
135
- 'desc',
136
- 'description',
137
- 'prompts',
138
- 'actions',
139
-
140
154
  // Colors
141
155
  'colorTokens',
142
156
  'primary',
@@ -146,6 +160,7 @@ const props = [
146
160
  'surface',
147
161
  'error',
148
162
  'warning',
163
+ 'info',
149
164
  'success',
150
165
  'danger',
151
166
  'disabled',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/lint",
3
- "version": "1.0.46",
3
+ "version": "1.0.49",
4
4
  "author": "ITCase",
5
5
  "description": "Code style linter configuration presets",
6
6
  "engines": {
@@ -33,6 +33,8 @@
33
33
  "registry": "https://registry.npmjs.org/"
34
34
  },
35
35
  "dependencies": {
36
+ "@typescript-eslint/eslint-plugin": "^8.28.0",
37
+ "@typescript-eslint/parser": "^8.28.0",
36
38
  "@babel/eslint-parser": "^7.27.0",
37
39
  "@babel/eslint-plugin": "^7.27.0",
38
40
  "@eslint/compat": "^1.2.7",
@@ -13,7 +13,11 @@ export default {
13
13
  'ios/**/*',
14
14
  'android/**/*',
15
15
  ],
16
- plugins: ['stylelint-prettier', 'stylelint-order', 'stylelint-no-unsupported-browser-features'],
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: ['import-glob', 'for', 'each', 'mixin', 'define-mixin'],
230
+ ignoreAtRules: [
231
+ 'import-glob',
232
+ 'for',
233
+ 'each',
234
+ 'mixin',
235
+ 'define-mixin',
236
+ ],
221
237
  },
222
238
  ],
223
239
  },