@itcase/lint 1.1.42 → 1.1.44
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const customGroups = {
|
|
2
|
+
UPPERCASE: '\\b[A-Z]+(_[A-Z]+)*\\b',
|
|
2
3
|
id: '^id$',
|
|
3
4
|
title: '^title.*',
|
|
4
5
|
subtitle: '^subtitle.*',
|
|
@@ -34,7 +35,6 @@ const customGroups = {
|
|
|
34
35
|
hasTertiary: '^(?!is|on).*(T|t)ertiary.*',
|
|
35
36
|
hasQuaternary: '^(?!is|on).*(Q|q)uaternary.*',
|
|
36
37
|
hasSurface: '^(?!is|on).*(S|s)urface.*',
|
|
37
|
-
hasDefault: '^(?!is|on).*(A|a)ccent.*',
|
|
38
38
|
hasError: '^(?!is|on)(?!on).*(E|e)rror.*',
|
|
39
39
|
hasWarning: '^(?!is|on).*(W|w)arning.*',
|
|
40
40
|
hasRequire: '^(?!is|on).*(T|t)ertiary.*',
|
|
@@ -73,6 +73,10 @@ const customGroups = {
|
|
|
73
73
|
isTablet: '^isTablet.*',
|
|
74
74
|
isDesktop: '^isDesktop.*',
|
|
75
75
|
|
|
76
|
+
primaryButton: '^primaryButton.*',
|
|
77
|
+
secondaryButton: '^secondaryButton.*',
|
|
78
|
+
tertiaryButton: '^tertiaryButton.*',
|
|
79
|
+
|
|
76
80
|
message: '^message.*',
|
|
77
81
|
close: '^close.*',
|
|
78
82
|
open: '^open.*',
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const props = [
|
|
2
|
+
'UPPERCASE',
|
|
2
3
|
'id',
|
|
3
4
|
'dataTestId',
|
|
4
5
|
'dataTour',
|
|
@@ -89,7 +90,10 @@ const props = [
|
|
|
89
90
|
'isTablet',
|
|
90
91
|
'isDesktop',
|
|
91
92
|
|
|
92
|
-
|
|
93
|
+
// FormInitialValues Mock
|
|
94
|
+
`default`,
|
|
95
|
+
`empty`,
|
|
96
|
+
`validation`,
|
|
93
97
|
|
|
94
98
|
'config',
|
|
95
99
|
'validationSchema',
|
|
@@ -117,6 +121,16 @@ const props = [
|
|
|
117
121
|
'actions',
|
|
118
122
|
'status',
|
|
119
123
|
|
|
124
|
+
// FormMock
|
|
125
|
+
`Default`,
|
|
126
|
+
`Require`,
|
|
127
|
+
`Validation`,
|
|
128
|
+
`Filled`,
|
|
129
|
+
`Loading`,
|
|
130
|
+
`ServerError`,
|
|
131
|
+
`ServerErrorData`,
|
|
132
|
+
`InitialValues`,
|
|
133
|
+
|
|
120
134
|
// Colors
|
|
121
135
|
'accent',
|
|
122
136
|
'primary',
|
|
@@ -124,7 +138,6 @@ const props = [
|
|
|
124
138
|
'tertiary',
|
|
125
139
|
'quaternary',
|
|
126
140
|
'surface',
|
|
127
|
-
'default',
|
|
128
141
|
'error',
|
|
129
142
|
'warning',
|
|
130
143
|
'require',
|
|
@@ -139,7 +152,6 @@ const props = [
|
|
|
139
152
|
'hasTertiary',
|
|
140
153
|
'hasQuaternary',
|
|
141
154
|
'hasSurface',
|
|
142
|
-
'hasDefault',
|
|
143
155
|
'hasError',
|
|
144
156
|
'hasWarning',
|
|
145
157
|
'hasRequire',
|
|
@@ -161,10 +173,17 @@ const props = [
|
|
|
161
173
|
'hasInfoMuted',
|
|
162
174
|
'hasDisabledMuted',
|
|
163
175
|
|
|
176
|
+
// FormInitialValues Mock
|
|
177
|
+
`filled`,
|
|
178
|
+
`loading`,
|
|
179
|
+
`serverError`,
|
|
180
|
+
`serverErrorData`,
|
|
181
|
+
|
|
182
|
+
'initialValues',
|
|
183
|
+
|
|
164
184
|
// State
|
|
165
185
|
'custom',
|
|
166
186
|
'fail',
|
|
167
|
-
'error500',
|
|
168
187
|
'nothingFound',
|
|
169
188
|
'unableLoadData',
|
|
170
189
|
'refresh',
|