@itcase/lint 1.1.56 → 1.1.58

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.
@@ -35,32 +35,43 @@ const customGroups = {
35
35
  ErrorRequestMock: 'ErrorRequestMock$',
36
36
  SuccessMock: 'SuccessMock$',
37
37
 
38
- hasAccent: '^.(?!is|on)\b.*(A|a)ccent.*\b',
39
- hasPrimary: '^.(?!is|on)\b.*(P|p)rimary.*\b',
40
- hasSecondary: '^(?!is|on)\b.*(S|s)econdary.*\b',
41
- hasTertiary: '^(?!is|on)\b.*(T|t)ertiary.*\b',
42
- hasQuaternary: '^(?!is|on)\b.*(Q|q)uaternary.*\b',
43
- hasSurface: '^(?!is|on)\b.*(S|s)urface.*\b',
44
- hasError: '^(?!is|on)\b.*(E|e)rror.*\b',
45
- hasWarning: '^(?!is|on)\b.*(W|w)arning.*\b',
46
- hasRequire: '^(?!is|on)\b.*(T|t)ertiary.*\b',
47
- hasSuccess: '^(?!is|on)(?!on)\b.*(S|s)uccess.*\b',
48
- hasDanger: '^(?!is|on)\b.*(D|d)anger.*\b',
49
- hasInfo: '^(?!is|on)\b.*(I|i)nfo.*\b',
50
- hasDisabled: '^(?!is|on)\b.*(D|d)isabled.*\b',
38
+ hasAccent: '^.(?!is|on).*(A|a)ccent.*\b',
39
+ hasPrimary: '^.(?!is|on).*(P|p)rimary.*\b',
40
+ hasSecondary: '^(?!is|on).*(S|s)econdary.*\b',
41
+ hasTertiary: '^(?!is|on).*(T|t)ertiary.*\b',
42
+ hasQuaternary: '^(?!is|on).*(Q|q)uaternary.*\b',
43
+ hasSurface: '^(?!is|on).*(S|s)urface.*\b',
44
+ hasError: '^(?!is|on).*(E|e)rror.*\b',
45
+ hasWarning: '^(?!is|on).*(W|w)arning.*\b',
51
46
 
52
- hasAccentMuted: '^\b.*AccentMuted.*\b',
53
- hasPrimaryMuted: '^\b.*PrimaryMuted.*\b',
54
- hasSecondaryMuted: '^\b.*SecondaryMuted.*\b',
55
- hasTertiaryMuted: '^\b.*TertiaryMuted.*\b',
56
- hasQuaternaryMuted: '^\b.*QuaternaryMuted.*\b',
57
- hasSurfaceMuted: '^\b.*SurfaceMuted.*\b',
47
+ hasDefault: '^.(?!is|on).*(D|d)efault.*\b',
48
+
49
+ hasRequire: '^(?!is|on).*(T|t)ertiary.*\b',
50
+
51
+ hasSuccess: '^(?!is|on)(?!on).*(S|s)uccess.*\b',
52
+ hasDanger: '^(?!is|on).*(D|d)anger.*\b',
53
+ hasInfo: '^(?!is|on).*(I|i)nfo.*\b',
54
+ hasDisabled: '^(?!is|on).*(D|d)isabled.*\b',
55
+
56
+ hasAccentMuted: '^.*AccentMuted.*\b',
57
+ hasPrimaryMuted: '^.*PrimaryMuted.*\b',
58
+ hasSecondaryMuted: '^.*SecondaryMuted.*\b',
59
+ hasTertiaryMuted: '^.*TertiaryMuted.*\b',
60
+ hasQuaternaryMuted: '^.*QuaternaryMuted.*\b',
61
+ hasSurfaceMuted: '^.*SurfaceMuted.*\b',
58
62
  hasErrorMuted: '^(?!on).*\bErrorMuted.*\b',
59
- hasWarningMuted: '^\b.*WarningMuted.*\b',
63
+ hasWarningMuted: '^.*WarningMuted.*\b',
60
64
  hasSuccessMuted: '^(?!on).*\bSuccessMuted.*\b',
61
- hasDangerMuted: '^\b.*DangerMuted.*\b',
62
- hasInfoMuted: '^\b.*InfoMuted.*\b',
63
- hasDisabledMuted: '^\b.*DisabledMuted.*\b',
65
+ hasDangerMuted: '^.*DangerMuted.*\b',
66
+ hasInfoMuted: '^.*InfoMuted.*\b',
67
+ hasDisabledMuted: '^.*DisabledMuted.*\b',
68
+
69
+ hasValidation: '^.(?!is|on).*(V|v)alidation.*\b',
70
+ hasFilled: '^.(?!is|on).*(F|f)illed.*\b',
71
+ hasLoading: '^.(?!is|on).*(L|l)oading.*\b',
72
+ hasServerError: '^.(?!is|on).*(S|s)erverError.*\b',
73
+ hasServerErrorData: '^.(?!is|on).*(S|s)erverErrorData.*\b',
74
+ hasInitialValues: '^.(?!is|on).*(I|i)nitialValues.*\b',
64
75
 
65
76
  min: '^min.*',
66
77
  max: '^max.*',
@@ -115,23 +115,6 @@ const props = [
115
115
  'borderColorActiveHover',
116
116
  'borderColorDisabled',
117
117
 
118
- `Default`,
119
- `Require`,
120
- `Validation`,
121
- `Filled`,
122
- `Loading`,
123
- `ServerError`,
124
- `ServerErrorData`,
125
- `InitialValues`,
126
- `default`,
127
- `require`,
128
- `validation`,
129
- `filled`,
130
- `loading`,
131
- `serverError`,
132
- `serverErrorData`,
133
- `initialValues`,
134
-
135
118
  // Colors
136
119
  'hasAccent',
137
120
  'hasPrimary',
@@ -144,6 +127,9 @@ const props = [
144
127
  'errorRequest',
145
128
  'errorNetwork',
146
129
  'hasWarning',
130
+
131
+ 'hasDefault',
132
+
147
133
  'hasRequire',
148
134
  'hasSuccess',
149
135
  'hasDanger',
@@ -163,6 +149,13 @@ const props = [
163
149
  'hasInfoMuted',
164
150
  'hasDisabledMuted',
165
151
 
152
+ 'hasValidation',
153
+ 'hasFilled',
154
+ 'hasLoading',
155
+ 'hasServerError',
156
+ 'hasServerErrorData',
157
+ 'hasInitialValues',
158
+
166
159
  // State
167
160
  'custom',
168
161
  'fail',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/lint",
3
- "version": "1.1.56",
3
+ "version": "1.1.58",
4
4
  "author": "ITCase",
5
5
  "description": "Code style linter configuration presets",
6
6
  "engines": {