@itcase/lint 1.1.12 → 1.1.14

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,17 @@ 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
+ hasPrimary: '^.*(P|p)rimary.*',
21
+ hasSecondary: '^.*(S|s)econdary.*',
22
+ hasTertiary: '^.*(T|t)ertiary.*',
23
+ hasQuaternary: '^.*(Q|q)uaternary.*',
24
+ hasSurface: '^.*(S|s)urface.*',
25
+ hasError: '^(?!on).*(E|e)rror.*',
26
+ hasWarning: '^.*(W|w)arning.*',
27
+ hasSuccess: '^(?!on).*(S|s)uccess.*',
28
+ hasDanger: '^.*(D|d)anger.*',
29
+ hasInfo: '^.*(I|i)nfo.*',
30
+ hasDisabled: '^.*(D|d)isabled.*',
34
31
 
35
32
  min: '^min.*',
36
33
  max: '^max.*',
@@ -186,7 +186,17 @@ const props = [
186
186
  'success',
187
187
  'danger',
188
188
  'disabled',
189
- 'colorTokens',
189
+ 'hasPrimary',
190
+ 'hasSecondary',
191
+ 'hasTertiary',
192
+ 'hasQuaternary',
193
+ 'hasSurface',
194
+ 'hasError',
195
+ 'hasWarning',
196
+ 'hasInfo',
197
+ 'hasSuccess',
198
+ 'hasDanger',
199
+ 'hasDisabled',
190
200
 
191
201
  // State
192
202
  'error500',
@@ -239,9 +249,6 @@ const props = [
239
249
  'after',
240
250
  'open',
241
251
  'close',
242
- 'primaryButton',
243
- 'secondaryButton',
244
- 'tertiaryButton',
245
252
  'is',
246
253
  'isDisabled',
247
254
  'set',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/lint",
3
- "version": "1.1.12",
3
+ "version": "1.1.14",
4
4
  "author": "ITCase",
5
5
  "description": "Code style linter configuration presets",
6
6
  "engines": {