@itcase/lint 1.1.13 → 1.1.15

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.
@@ -7,9 +7,9 @@ const customGroups = {
7
7
  description: '^description.*',
8
8
  status: '^status.*',
9
9
  fill: '^fill.*',
10
- fillHover: '^fillHover.*',
11
- fillActive: '^fillActive.*',
12
- fillDisabled: '^fillDisabled.*',
10
+ fillHover: 'fillHover.*',
11
+ fillActive: 'fillActive.*',
12
+ fillDisabled: 'fillDisabled.*',
13
13
  border: '^border.*',
14
14
  shadow: '^shadow.*',
15
15
  template: '^template.*',
@@ -17,20 +17,18 @@ const customGroups = {
17
17
  font: '^font.*',
18
18
  text: '^text.*',
19
19
 
20
- colorTokens:
21
- '(?:accent|primary|secondary|tertiary|quaternary|surface|error|warning|success|danger|info|disabled)',
22
-
23
- primary: '^.*(P|p)rimary.*',
24
- secondary: '^.*(S|s)econdary.*',
25
- tertiary: '^.*(T|t)ertiary.*',
26
- quaternary: '^.*(Q|q)uaternary.*',
27
- surface: '^.*(S|s)urface.*',
28
- error: '^(?!on).*(E|e)rror.*',
29
- warning: '^.*(W|w)arning.*',
30
- success: '^(?!on).*(S|s)uccess.*',
31
- danger: '^.*(D|d)anger.*',
32
- info: '^.*(I|i)nfo.*',
33
- disabled: '^.*(D|d)isabled.*',
20
+ hasAccent: '^.*(A|a)ccent.*',
21
+ hasPrimary: '^.*(P|p)rimary.*',
22
+ hasSecondary: '^.*(S|s)econdary.*',
23
+ hasTertiary: '^.*(T|t)ertiary.*',
24
+ hasQuaternary: '^.*(Q|q)uaternary.*',
25
+ hasSurface: '^.*(S|s)urface.*',
26
+ hasError: '^(?!on).*(E|e)rror.*',
27
+ hasWarning: '^.*(W|w)arning.*',
28
+ hasSuccess: '^(?!on).*(S|s)uccess.*',
29
+ hasDanger: '^.*(D|d)anger.*',
30
+ hasInfo: '^.*(I|i)nfo.*',
31
+ hasDisabled: '^.*(D|d)isabled.*',
34
32
 
35
33
  min: '^min.*',
36
34
  max: '^max.*',
@@ -171,10 +171,8 @@ const props = [
171
171
  'includeFontPadding',
172
172
  'writingDirection',
173
173
 
174
- // State
175
- 'custom',
176
-
177
174
  // Colors
175
+ 'accent',
178
176
  'primary',
179
177
  'secondary',
180
178
  'tertiary',
@@ -186,7 +184,21 @@ const props = [
186
184
  'success',
187
185
  'danger',
188
186
  'disabled',
189
- 'colorTokens',
187
+ 'hasAccent',
188
+ 'hasPrimary',
189
+ 'hasSecondary',
190
+ 'hasTertiary',
191
+ 'hasQuaternary',
192
+ 'hasSurface',
193
+ 'hasError',
194
+ 'hasWarning',
195
+ 'hasInfo',
196
+ 'hasSuccess',
197
+ 'hasDanger',
198
+ 'hasDisabled',
199
+
200
+ // State
201
+ 'custom',
190
202
 
191
203
  // State
192
204
  'error500',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/lint",
3
- "version": "1.1.13",
3
+ "version": "1.1.15",
4
4
  "author": "ITCase",
5
5
  "description": "Code style linter configuration presets",
6
6
  "engines": {