@@ -64,7 +64,6 @@ const stylelintPolarisCoverageOptions = {
64
64
'polaris/at-rule-disallowed-list' : {
65
65
include : [
66
66
// Legacy mixins
67
- 'color-icon' ,
68
67
'recolor-icon' ,
69
68
'ms-high-contrast-color' ,
70
69
] . map ( matchNameRegExp ) ,
@@ -74,9 +73,6 @@ const stylelintPolarisCoverageOptions = {
74
73
/ \$ p o l a r i s - c o l o r s / ,
75
74
/ \$ c o l o r - f i l t e r - p a l e t t e - d a t a / ,
76
75
/ \$ c o l o r - p a l e t t e - d a t a / ,
77
- // Legacy custom properties
78
- / - - p - o v e r r i d e - t r a n s p a r e n t / ,
79
- / - - p - b a d g e - m i x - b l e n d - m o d e / ,
80
76
] ,
81
77
} ,
82
78
{
@@ -85,11 +81,9 @@ const stylelintPolarisCoverageOptions = {
85
81
] ,
86
82
motion : [
87
83
{
88
- 'function-disallowed-list' : [
89
- 'control-icon-transition' ,
90
- 'duration' ,
91
- 'easing' ,
92
- ] . map ( matchNameRegExp ) ,
84
+ 'function-disallowed-list' : [ 'control-icon-transition' ] . map (
85
+ matchNameRegExp ,
86
+ ) ,
93
87
'declaration-property-unit-disallowed-list' : [
94
88
{
95
89
'/^animation/' : [ 'ms' , 's' ] ,
@@ -102,13 +96,7 @@ const stylelintPolarisCoverageOptions = {
102
96
} ,
103
97
'polaris/global-disallowed-list' : [
104
98
// Legacy mixin map-get data
105
- / \$ d u r a t i o n - d a t a / ,
106
- / \$ p o l a r i s - d u r a t i o n - m a p / ,
107
99
/ \$ s k e l e t o n - s h i m m e r - d u r a t i o n / ,
108
- / \$ e a s i n g - d a t a / ,
109
- // Legacy custom properties
110
- / - - p - d u r a t i o n - 1 - 0 - 0 / ,
111
- / - - p - d u r a t i o n - 1 - 5 - 0 / ,
112
100
] ,
113
101
} ,
114
102
{
@@ -127,11 +115,9 @@ const stylelintPolarisCoverageOptions = {
127
115
} ,
128
116
] ,
129
117
'property-disallowed-list' : [ 'text-transform' ] ,
130
- 'function-disallowed-list' : [
131
- 'font-family' ,
132
- 'font-size' ,
133
- 'line-height' ,
134
- ] . map ( matchNameRegExp ) ,
118
+ 'function-disallowed-list' : [ 'font-size' , 'line-height' ] . map (
119
+ matchNameRegExp ,
120
+ ) ,
135
121
'polaris/at-rule-disallowed-list' : {
136
122
include : [
137
123
'truncate' ,
@@ -154,16 +140,10 @@ const stylelintPolarisCoverageOptions = {
154
140
} ,
155
141
'polaris/global-disallowed-list' : [
156
142
// Legacy mixin map-get data
157
- / \$ t y p o g r a p h y - c o n d e n s e d / ,
158
- / \$ t y p o g r a p h y - c o n d e n s e d / ,
159
143
/ \$ b a s e - f o n t - s i z e / ,
160
144
/ \$ l i n e - h e i g h t - d a t a / ,
161
- / \$ f o n t - f a m i l y - d a t a / ,
162
145
/ \$ f o n t - s i z e - d a t a / ,
163
146
/ \$ d e f a u l t - b r o w s e r - f o n t - s i z e / ,
164
- // Legacy custom properties
165
- / - - p - b u t t o n - f o n t / ,
166
- / - - p - b a d g e - f o n t / ,
167
147
] ,
168
148
} ,
169
149
{
@@ -214,16 +194,10 @@ const stylelintPolarisCoverageOptions = {
214
194
'control-slim-height' ,
215
195
'mobile-nav-width' ,
216
196
'thumbnail-size' ,
217
- 'icon-size' ,
218
197
'top-bar-height' ,
219
198
] . map ( matchNameRegExp ) ,
220
199
'polaris/at-rule-disallowed-list' : {
221
- include : [
222
- 'layout-flex-fix' ,
223
- 'safe-area-for' ,
224
- 'skeleton-page-header-layout' ,
225
- 'skeleton-page-secondary-actions-layout' ,
226
- ] . map ( matchNameRegExp ) ,
200
+ include : [ 'layout-flex-fix' , 'safe-area-for' ] . map ( matchNameRegExp ) ,
227
201
} ,
228
202
'polaris/global-disallowed-list' : [
229
203
// Legacy mixin map-get data
@@ -236,9 +210,6 @@ const stylelintPolarisCoverageOptions = {
236
210
// Legacy custom properties
237
211
/ - - p - r a n g e - s l i d e r - t h u m b - s i z e - b a s e / ,
238
212
/ - - p - r a n g e - s l i d e r - t h u m b - s i z e - a c t i v e / ,
239
- / - - p - r a n g e - s l i d e r - t h u m b - s c a l e / ,
240
- / - - p - o v e r r i d e - v i s i b l e / ,
241
- / - - p - i c o n - s i z e / ,
242
213
/ - - p - c h o i c e - s i z e / ,
243
214
] ,
244
215
} ,
@@ -248,7 +219,7 @@ const stylelintPolarisCoverageOptions = {
248
219
] ,
249
220
spacing : [
250
221
{
251
- 'function-disallowed-list' : [ 'control-vertical-padding' , 'spacing' ] . map (
222
+ 'function-disallowed-list' : [ 'control-vertical-padding' ] . map (
252
223
matchNameRegExp ,
253
224
) ,
254
225
'declaration-property-unit-disallowed-list' : [
@@ -261,8 +232,6 @@ const stylelintPolarisCoverageOptions = {
261
232
'polaris/global-disallowed-list' : [
262
233
// Legacy mixin map-get data
263
234
/ \$ p o l a r i s - s p a c i n g / ,
264
- / \$ s p a c i n g - d a t a / ,
265
- / \$ a c t i o n s - v e r t i c a l - s p a c i n g / ,
266
235
// Legacy custom properties
267
236
/ - - p - b u t t o n - g r o u p - i t e m - s p a c i n g / ,
268
237
/ - - p - c h o i c e - m a r g i n / ,
@@ -275,11 +244,6 @@ const stylelintPolarisCoverageOptions = {
275
244
] ,
276
245
shape : [
277
246
{
278
- 'function-disallowed-list' : [
279
- 'border-radius' ,
280
- 'border-width' ,
281
- 'border' ,
282
- ] . map ( matchNameRegExp ) ,
283
247
'declaration-property-unit-disallowed-list' : [
284
248
{
285
249
'border-width' : disallowedUnits ,
@@ -299,10 +263,6 @@ const stylelintPolarisCoverageOptions = {
299
263
] . map ( matchNameRegExp ) ,
300
264
} ,
301
265
'polaris/global-disallowed-list' : [
302
- // Legacy mixin map-get data
303
- / \$ b o r d e r - r a d i u s - d a t a / ,
304
- / \$ b o r d e r - w i d t h - d a t a / ,
305
- / \$ b o r d e r s - d a t a / ,
306
266
// Legacy custom properties
307
267
// /--p-border-radius-base/,
308
268
/ - - p - b o r d e r - r a d i u s - w i d e / ,
@@ -314,7 +274,6 @@ const stylelintPolarisCoverageOptions = {
314
274
/ - - p - b a n n e r - b o r d e r - h i g h l i g h t / ,
315
275
/ - - p - b a n n e r - b o r d e r - w a r n i n g / ,
316
276
/ - - p - b a n n e r - b o r d e r - c r i t i c a l / ,
317
- / - - p - t e x t - f i e l d - f o c u s - r i n g - b o r d e r - r a d i u s / ,
318
277
/ - - p - t e x t - f i e l d - f o c u s - r i n g - o f f s e t / ,
319
278
] ,
320
279
} ,
@@ -334,14 +293,6 @@ const stylelintPolarisCoverageOptions = {
334
293
'polaris/global-disallowed-list' : [
335
294
// Legacy mixin map-get data
336
295
/ \$ s h a d o w s - d a t a / ,
337
- // Legacy custom properties
338
- / - - p - b u t t o n - d r o p - s h a d o w / ,
339
- / - - p - b u t t o n - i n n e r - s h a d o w / ,
340
- / - - p - b u t t o n - p r e s s e d - i n n e r - s h a d o w / ,
341
- / - - p - c a r d - s h a d o w / ,
342
- / - - p - p o p o v e r - s h a d o w / ,
343
- / - - p - m o d a l - s h a d o w / ,
344
- / - - p - t o p - b a r - s h a d o w / ,
345
296
] ,
346
297
} ,
347
298
{
@@ -485,17 +436,11 @@ const stylelintPolarisCoverageOptions = {
485
436
'available-names' ,
486
437
'map-extend' ,
487
438
'em' ,
488
- 'px' ,
489
439
'rem' ,
490
440
] . map ( matchNameRegExp ) ,
491
441
'polaris/global-disallowed-list' : [
492
442
// Legacy variables
493
443
/ \* \$ / ,
494
- // Legacy custom properties
495
- / - - p - o v e r r i d e - n o n e / ,
496
- / - - p - o v e r r i d e - o n e / ,
497
- / - - p - o v e r r i d e - z e r o / ,
498
- / - - p - n o n - n u l l - c o n t e n t / ,
499
444
] ,
500
445
} ,
501
446
{
0 commit comments