@pengzhanbo/stylelint-config 1.5.1 → 1.5.2
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.
- package/dist/index.cjs +487 -435
- package/dist/index.js +488 -436
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -196,449 +196,486 @@ var normalRules = {
|
|
|
196
196
|
|
|
197
197
|
// src/rules/order.ts
|
|
198
198
|
var orderRules = {
|
|
199
|
+
"declaration-empty-line-before": [
|
|
200
|
+
"always",
|
|
201
|
+
{
|
|
202
|
+
except: ["first-nested"],
|
|
203
|
+
ignore: [
|
|
204
|
+
"after-declaration",
|
|
205
|
+
"after-comment",
|
|
206
|
+
"inside-single-line-block"
|
|
207
|
+
]
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
"at-rule-empty-line-before": [
|
|
211
|
+
"always",
|
|
212
|
+
{
|
|
213
|
+
ignore: [
|
|
214
|
+
"first-nested",
|
|
215
|
+
"blockless-after-same-name-blockless",
|
|
216
|
+
"after-comment"
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
],
|
|
199
220
|
"order/order": [
|
|
200
221
|
[
|
|
222
|
+
{ type: "at-rule", name: "import" },
|
|
223
|
+
{ type: "at-rule", name: "forward" },
|
|
224
|
+
{ type: "at-rule", name: "use" },
|
|
201
225
|
"dollar-variables",
|
|
226
|
+
"at-variables",
|
|
202
227
|
"custom-properties",
|
|
203
|
-
"at-
|
|
228
|
+
{ type: "at-rule", name: "custom-media" },
|
|
229
|
+
{ type: "at-rule", name: "function" },
|
|
230
|
+
{ type: "at-rule", name: "mixin" },
|
|
231
|
+
{ type: "at-rule", name: "extend" },
|
|
232
|
+
{ type: "at-rule", name: "include" },
|
|
233
|
+
{ type: "at-rule", name: "supports" },
|
|
204
234
|
"declarations",
|
|
205
235
|
{
|
|
206
|
-
type: "
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
{
|
|
210
|
-
type: "at-rule",
|
|
211
|
-
name: "media"
|
|
236
|
+
type: "rule",
|
|
237
|
+
selector: /^&::[\w-]+/,
|
|
238
|
+
hasBlock: true
|
|
212
239
|
},
|
|
213
|
-
"rules"
|
|
240
|
+
"rules",
|
|
241
|
+
{ type: "at-rule", name: "media", hasBlock: true }
|
|
214
242
|
],
|
|
215
243
|
{ severity: "warning" }
|
|
216
244
|
],
|
|
217
245
|
"order/properties-order": [
|
|
246
|
+
[
|
|
247
|
+
{
|
|
248
|
+
/**
|
|
249
|
+
* Compose rules from other selectors in CSS Modules.
|
|
250
|
+
* @see https://github.com/css-modules/css-modules#composition
|
|
251
|
+
*/
|
|
252
|
+
properties: ["composes"]
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
// Must be first (unless using the above).
|
|
256
|
+
properties: ["all"]
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
// Position.
|
|
260
|
+
properties: [
|
|
261
|
+
"position",
|
|
262
|
+
"inset",
|
|
263
|
+
"inset-block",
|
|
264
|
+
"inset-block-start",
|
|
265
|
+
"inset-block-end",
|
|
266
|
+
"inset-inline",
|
|
267
|
+
"inset-inline-start",
|
|
268
|
+
"inset-inline-end",
|
|
269
|
+
"top",
|
|
270
|
+
"right",
|
|
271
|
+
"bottom",
|
|
272
|
+
"left",
|
|
273
|
+
"z-index"
|
|
274
|
+
]
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
// Display mode.
|
|
278
|
+
properties: ["box-sizing", "display"]
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
// Flexible boxes.
|
|
282
|
+
properties: [
|
|
283
|
+
"flex",
|
|
284
|
+
"flex-basis",
|
|
285
|
+
"flex-direction",
|
|
286
|
+
"flex-flow",
|
|
287
|
+
"flex-grow",
|
|
288
|
+
"flex-shrink",
|
|
289
|
+
"flex-wrap"
|
|
290
|
+
]
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
// Grid layout.
|
|
294
|
+
properties: [
|
|
295
|
+
"grid",
|
|
296
|
+
"grid-area",
|
|
297
|
+
"grid-template",
|
|
298
|
+
"grid-template-areas",
|
|
299
|
+
"grid-template-rows",
|
|
300
|
+
"grid-template-columns",
|
|
301
|
+
"grid-row",
|
|
302
|
+
"grid-row-start",
|
|
303
|
+
"grid-row-end",
|
|
304
|
+
"grid-column",
|
|
305
|
+
"grid-column-start",
|
|
306
|
+
"grid-column-end",
|
|
307
|
+
"grid-auto-rows",
|
|
308
|
+
"grid-auto-columns",
|
|
309
|
+
"grid-auto-flow",
|
|
310
|
+
"grid-gap",
|
|
311
|
+
"grid-row-gap",
|
|
312
|
+
"grid-column-gap"
|
|
313
|
+
]
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
// Gap.
|
|
317
|
+
properties: ["gap", "row-gap", "column-gap"]
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
// Layout alignment.
|
|
321
|
+
properties: [
|
|
322
|
+
"place-content",
|
|
323
|
+
"place-items",
|
|
324
|
+
"place-self",
|
|
325
|
+
"align-content",
|
|
326
|
+
"align-items",
|
|
327
|
+
"align-self",
|
|
328
|
+
"justify-content",
|
|
329
|
+
"justify-items",
|
|
330
|
+
"justify-self"
|
|
331
|
+
]
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
// Order.
|
|
335
|
+
properties: ["order"]
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
// Box model.
|
|
339
|
+
properties: [
|
|
340
|
+
"float",
|
|
341
|
+
"inline-size",
|
|
342
|
+
"min-inline-size",
|
|
343
|
+
"max-inline-size",
|
|
344
|
+
"width",
|
|
345
|
+
"min-width",
|
|
346
|
+
"max-width",
|
|
347
|
+
"block-size",
|
|
348
|
+
"min-block-size",
|
|
349
|
+
"max-block-size",
|
|
350
|
+
"height",
|
|
351
|
+
"min-height",
|
|
352
|
+
"max-height",
|
|
353
|
+
"aspect-ratio",
|
|
354
|
+
"padding",
|
|
355
|
+
"padding-block",
|
|
356
|
+
"padding-block-start",
|
|
357
|
+
"padding-block-end",
|
|
358
|
+
"padding-inline",
|
|
359
|
+
"padding-inline-start",
|
|
360
|
+
"padding-inline-end",
|
|
361
|
+
"padding-top",
|
|
362
|
+
"padding-right",
|
|
363
|
+
"padding-bottom",
|
|
364
|
+
"padding-left",
|
|
365
|
+
"margin",
|
|
366
|
+
"margin-block",
|
|
367
|
+
"margin-block-start",
|
|
368
|
+
"margin-block-end",
|
|
369
|
+
"margin-inline",
|
|
370
|
+
"margin-inline-start",
|
|
371
|
+
"margin-inline-end",
|
|
372
|
+
"margin-top",
|
|
373
|
+
"margin-right",
|
|
374
|
+
"margin-bottom",
|
|
375
|
+
"margin-left",
|
|
376
|
+
"overflow",
|
|
377
|
+
"overflow-block",
|
|
378
|
+
"overflow-inline",
|
|
379
|
+
"overflow-x",
|
|
380
|
+
"overflow-y",
|
|
381
|
+
"-webkit-overflow-scrolling",
|
|
382
|
+
"-ms-overflow-x",
|
|
383
|
+
"-ms-overflow-y",
|
|
384
|
+
"-ms-overflow-style",
|
|
385
|
+
"overscroll-behavior",
|
|
386
|
+
"overscroll-behavior-inline",
|
|
387
|
+
"overscroll-behavior-block",
|
|
388
|
+
"overscroll-behavior-x",
|
|
389
|
+
"overscroll-behavior-y",
|
|
390
|
+
"clip",
|
|
391
|
+
"clip-path",
|
|
392
|
+
"clear"
|
|
393
|
+
]
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
// Typography.
|
|
397
|
+
properties: [
|
|
398
|
+
"font",
|
|
399
|
+
"font-family",
|
|
400
|
+
"font-size",
|
|
401
|
+
"font-variation-settings",
|
|
402
|
+
"font-style",
|
|
403
|
+
"font-weight",
|
|
404
|
+
"font-feature-settings",
|
|
405
|
+
"font-optical-sizing",
|
|
406
|
+
"font-kerning",
|
|
407
|
+
"font-variant",
|
|
408
|
+
"font-variant-ligatures",
|
|
409
|
+
"font-variant-caps",
|
|
410
|
+
"font-variant-alternates",
|
|
411
|
+
"font-variant-numeric",
|
|
412
|
+
"font-variant-east-asian",
|
|
413
|
+
"font-variant-position",
|
|
414
|
+
"font-size-adjust",
|
|
415
|
+
"font-stretch",
|
|
416
|
+
"font-effect",
|
|
417
|
+
"font-emphasize",
|
|
418
|
+
"font-emphasize-position",
|
|
419
|
+
"font-emphasize-style",
|
|
420
|
+
"-webkit-font-smoothing",
|
|
421
|
+
"-moz-osx-font-smoothing",
|
|
422
|
+
"font-smooth",
|
|
423
|
+
"hyphens",
|
|
424
|
+
"line-height",
|
|
425
|
+
"color",
|
|
426
|
+
"text-align",
|
|
427
|
+
"text-align-last",
|
|
428
|
+
"text-emphasis",
|
|
429
|
+
"text-emphasis-color",
|
|
430
|
+
"text-emphasis-style",
|
|
431
|
+
"text-emphasis-position",
|
|
432
|
+
"text-decoration",
|
|
433
|
+
"text-decoration-line",
|
|
434
|
+
"text-decoration-thickness",
|
|
435
|
+
"text-decoration-style",
|
|
436
|
+
"text-decoration-color",
|
|
437
|
+
"text-underline-position",
|
|
438
|
+
"text-underline-offset",
|
|
439
|
+
"text-indent",
|
|
440
|
+
"text-justify",
|
|
441
|
+
"text-outline",
|
|
442
|
+
"-ms-text-overflow",
|
|
443
|
+
"text-overflow",
|
|
444
|
+
"text-overflow-ellipsis",
|
|
445
|
+
"text-overflow-mode",
|
|
446
|
+
"text-shadow",
|
|
447
|
+
"text-transform",
|
|
448
|
+
"text-wrap",
|
|
449
|
+
"-webkit-text-size-adjust",
|
|
450
|
+
"-ms-text-size-adjust",
|
|
451
|
+
"letter-spacing",
|
|
452
|
+
"word-break",
|
|
453
|
+
"word-spacing",
|
|
454
|
+
"word-wrap",
|
|
455
|
+
// Legacy name for `overflow-wrap`
|
|
456
|
+
"overflow-wrap",
|
|
457
|
+
"tab-size",
|
|
458
|
+
"white-space",
|
|
459
|
+
"vertical-align",
|
|
460
|
+
"list-style",
|
|
461
|
+
"list-style-position",
|
|
462
|
+
"list-style-type",
|
|
463
|
+
"list-style-image",
|
|
464
|
+
"src",
|
|
465
|
+
"font-display",
|
|
466
|
+
"unicode-range",
|
|
467
|
+
"size-adjust",
|
|
468
|
+
"ascent-override",
|
|
469
|
+
"descent-override",
|
|
470
|
+
"line-gap-override"
|
|
471
|
+
]
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
// Accessibility & Interactions.
|
|
475
|
+
properties: [
|
|
476
|
+
"appearance",
|
|
477
|
+
"accent-color",
|
|
478
|
+
"color-scheme",
|
|
479
|
+
"pointer-events",
|
|
480
|
+
"-ms-touch-action",
|
|
481
|
+
"touch-action",
|
|
482
|
+
"cursor",
|
|
483
|
+
"caret-color",
|
|
484
|
+
"visibility",
|
|
485
|
+
"zoom",
|
|
486
|
+
"table-layout",
|
|
487
|
+
"empty-cells",
|
|
488
|
+
"caption-side",
|
|
489
|
+
"border-spacing",
|
|
490
|
+
"border-collapse",
|
|
491
|
+
"content",
|
|
492
|
+
"quotes",
|
|
493
|
+
"counter-reset",
|
|
494
|
+
"counter-set",
|
|
495
|
+
"counter-increment",
|
|
496
|
+
"resize",
|
|
497
|
+
"user-select",
|
|
498
|
+
"nav-index",
|
|
499
|
+
"nav-up",
|
|
500
|
+
"nav-right",
|
|
501
|
+
"nav-down",
|
|
502
|
+
"nav-left"
|
|
503
|
+
]
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
// Background & Borders.
|
|
507
|
+
properties: [
|
|
508
|
+
"background",
|
|
509
|
+
"background-color",
|
|
510
|
+
"background-image",
|
|
511
|
+
"-ms-filter:\\'progid:DXImageTransform.Microsoft.gradient",
|
|
512
|
+
"filter:progid:DXImageTransform.Microsoft.gradient",
|
|
513
|
+
"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader",
|
|
514
|
+
"filter",
|
|
515
|
+
"background-repeat",
|
|
516
|
+
"background-attachment",
|
|
517
|
+
"background-position",
|
|
518
|
+
"background-position-x",
|
|
519
|
+
"background-position-y",
|
|
520
|
+
"background-clip",
|
|
521
|
+
"background-origin",
|
|
522
|
+
"background-size",
|
|
523
|
+
"background-blend-mode",
|
|
524
|
+
"isolation",
|
|
525
|
+
"backdrop-filter",
|
|
526
|
+
"border",
|
|
527
|
+
"border-color",
|
|
528
|
+
"border-style",
|
|
529
|
+
"border-width",
|
|
530
|
+
"border-block",
|
|
531
|
+
"border-block-start",
|
|
532
|
+
"border-block-start-color",
|
|
533
|
+
"border-block-start-style",
|
|
534
|
+
"border-block-start-width",
|
|
535
|
+
"border-block-end",
|
|
536
|
+
"border-block-end-color",
|
|
537
|
+
"border-block-end-style",
|
|
538
|
+
"border-block-end-width",
|
|
539
|
+
"border-inline",
|
|
540
|
+
"border-inline-start",
|
|
541
|
+
"border-inline-start-color",
|
|
542
|
+
"border-inline-start-style",
|
|
543
|
+
"border-inline-start-width",
|
|
544
|
+
"border-inline-end",
|
|
545
|
+
"border-inline-end-color",
|
|
546
|
+
"border-inline-end-style",
|
|
547
|
+
"border-inline-end-width",
|
|
548
|
+
"border-top",
|
|
549
|
+
"border-top-color",
|
|
550
|
+
"border-top-style",
|
|
551
|
+
"border-top-width",
|
|
552
|
+
"border-right",
|
|
553
|
+
"border-right-color",
|
|
554
|
+
"border-right-style",
|
|
555
|
+
"border-right-width",
|
|
556
|
+
"border-bottom",
|
|
557
|
+
"border-bottom-color",
|
|
558
|
+
"border-bottom-style",
|
|
559
|
+
"border-bottom-width",
|
|
560
|
+
"border-left",
|
|
561
|
+
"border-left-color",
|
|
562
|
+
"border-left-style",
|
|
563
|
+
"border-left-width",
|
|
564
|
+
"border-radius",
|
|
565
|
+
"border-start-start-radius",
|
|
566
|
+
"border-start-end-radius",
|
|
567
|
+
"border-end-start-radius",
|
|
568
|
+
"border-end-end-radius",
|
|
569
|
+
"border-top-left-radius",
|
|
570
|
+
"border-top-right-radius",
|
|
571
|
+
"border-bottom-right-radius",
|
|
572
|
+
"border-bottom-left-radius",
|
|
573
|
+
"border-image",
|
|
574
|
+
"border-image-source",
|
|
575
|
+
"border-image-slice",
|
|
576
|
+
"border-image-width",
|
|
577
|
+
"border-image-outset",
|
|
578
|
+
"border-image-repeat",
|
|
579
|
+
"outline",
|
|
580
|
+
"outline-width",
|
|
581
|
+
"outline-style",
|
|
582
|
+
"outline-color",
|
|
583
|
+
"outline-offset",
|
|
584
|
+
"box-shadow",
|
|
585
|
+
"mix-blend-mode",
|
|
586
|
+
"filter:progid:DXImageTransform.Microsoft.Alpha(Opacity",
|
|
587
|
+
"-ms-filter:\\'progid:DXImageTransform.Microsoft.Alpha",
|
|
588
|
+
"opacity",
|
|
589
|
+
"-ms-interpolation-mode"
|
|
590
|
+
]
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
// Masking.
|
|
594
|
+
properties: [
|
|
595
|
+
"mask-border",
|
|
596
|
+
"mask-border-source",
|
|
597
|
+
"mask-border-slice",
|
|
598
|
+
"mask-border-width",
|
|
599
|
+
"mask-border-outset",
|
|
600
|
+
"mask-border-repeat",
|
|
601
|
+
"mask-border-mode",
|
|
602
|
+
"mask",
|
|
603
|
+
"mask-image",
|
|
604
|
+
"mask-mode",
|
|
605
|
+
"mask-repeat",
|
|
606
|
+
"mask-position",
|
|
607
|
+
"mask-clip",
|
|
608
|
+
"mask-origin",
|
|
609
|
+
"mask-size",
|
|
610
|
+
"mask-composite"
|
|
611
|
+
]
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
// SVG Presentation Attributes.
|
|
615
|
+
properties: [
|
|
616
|
+
"alignment-baseline",
|
|
617
|
+
"baseline-shift",
|
|
618
|
+
"dominant-baseline",
|
|
619
|
+
"text-anchor",
|
|
620
|
+
"word-spacing",
|
|
621
|
+
"writing-mode",
|
|
622
|
+
"fill",
|
|
623
|
+
"fill-opacity",
|
|
624
|
+
"fill-rule",
|
|
625
|
+
"stroke",
|
|
626
|
+
"stroke-dasharray",
|
|
627
|
+
"stroke-dashoffset",
|
|
628
|
+
"stroke-linecap",
|
|
629
|
+
"stroke-linejoin",
|
|
630
|
+
"stroke-miterlimit",
|
|
631
|
+
"stroke-opacity",
|
|
632
|
+
"stroke-width",
|
|
633
|
+
"color-interpolation",
|
|
634
|
+
"color-interpolation-filters",
|
|
635
|
+
"color-profile",
|
|
636
|
+
"color-rendering",
|
|
637
|
+
"flood-color",
|
|
638
|
+
"flood-opacity",
|
|
639
|
+
"image-rendering",
|
|
640
|
+
"lighting-color",
|
|
641
|
+
"marker-start",
|
|
642
|
+
"marker-mid",
|
|
643
|
+
"marker-end",
|
|
644
|
+
"shape-rendering",
|
|
645
|
+
"stop-color",
|
|
646
|
+
"stop-opacity"
|
|
647
|
+
]
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
// Transitions & Animation.
|
|
651
|
+
properties: [
|
|
652
|
+
"transition",
|
|
653
|
+
"transition-delay",
|
|
654
|
+
"transition-timing-function",
|
|
655
|
+
"transition-duration",
|
|
656
|
+
"transition-property",
|
|
657
|
+
"transform",
|
|
658
|
+
"transform-origin",
|
|
659
|
+
"rotate",
|
|
660
|
+
"scale",
|
|
661
|
+
"translate",
|
|
662
|
+
"animation",
|
|
663
|
+
"animation-name",
|
|
664
|
+
"animation-duration",
|
|
665
|
+
"animation-play-state",
|
|
666
|
+
"animation-timing-function",
|
|
667
|
+
"animation-delay",
|
|
668
|
+
"animation-iteration-count",
|
|
669
|
+
"animation-direction",
|
|
670
|
+
"will-change"
|
|
671
|
+
]
|
|
672
|
+
}
|
|
673
|
+
],
|
|
218
674
|
{
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
properties: ["composes"]
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
// Must be first (unless using the above).
|
|
227
|
-
properties: ["all"]
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
// Position.
|
|
231
|
-
properties: [
|
|
232
|
-
"position",
|
|
233
|
-
"inset",
|
|
234
|
-
"inset-block",
|
|
235
|
-
"inset-block-start",
|
|
236
|
-
"inset-block-end",
|
|
237
|
-
"inset-inline",
|
|
238
|
-
"inset-inline-start",
|
|
239
|
-
"inset-inline-end",
|
|
240
|
-
"top",
|
|
241
|
-
"right",
|
|
242
|
-
"bottom",
|
|
243
|
-
"left",
|
|
244
|
-
"z-index"
|
|
245
|
-
]
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
// Display mode.
|
|
249
|
-
properties: ["box-sizing", "display"]
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
// Flexible boxes.
|
|
253
|
-
properties: [
|
|
254
|
-
"flex",
|
|
255
|
-
"flex-basis",
|
|
256
|
-
"flex-direction",
|
|
257
|
-
"flex-flow",
|
|
258
|
-
"flex-grow",
|
|
259
|
-
"flex-shrink",
|
|
260
|
-
"flex-wrap"
|
|
261
|
-
]
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
// Grid layout.
|
|
265
|
-
properties: [
|
|
266
|
-
"grid",
|
|
267
|
-
"grid-area",
|
|
268
|
-
"grid-template",
|
|
269
|
-
"grid-template-areas",
|
|
270
|
-
"grid-template-rows",
|
|
271
|
-
"grid-template-columns",
|
|
272
|
-
"grid-row",
|
|
273
|
-
"grid-row-start",
|
|
274
|
-
"grid-row-end",
|
|
275
|
-
"grid-column",
|
|
276
|
-
"grid-column-start",
|
|
277
|
-
"grid-column-end",
|
|
278
|
-
"grid-auto-rows",
|
|
279
|
-
"grid-auto-columns",
|
|
280
|
-
"grid-auto-flow",
|
|
281
|
-
"grid-gap",
|
|
282
|
-
"grid-row-gap",
|
|
283
|
-
"grid-column-gap"
|
|
284
|
-
]
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
// Gap.
|
|
288
|
-
properties: ["gap", "row-gap", "column-gap"]
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
// Layout alignment.
|
|
292
|
-
properties: [
|
|
293
|
-
"place-content",
|
|
294
|
-
"place-items",
|
|
295
|
-
"place-self",
|
|
296
|
-
"align-content",
|
|
297
|
-
"align-items",
|
|
298
|
-
"align-self",
|
|
299
|
-
"justify-content",
|
|
300
|
-
"justify-items",
|
|
301
|
-
"justify-self"
|
|
302
|
-
]
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
// Order.
|
|
306
|
-
properties: ["order"]
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
// Box model.
|
|
310
|
-
properties: [
|
|
311
|
-
"float",
|
|
312
|
-
"inline-size",
|
|
313
|
-
"min-inline-size",
|
|
314
|
-
"max-inline-size",
|
|
315
|
-
"width",
|
|
316
|
-
"min-width",
|
|
317
|
-
"max-width",
|
|
318
|
-
"block-size",
|
|
319
|
-
"min-block-size",
|
|
320
|
-
"max-block-size",
|
|
321
|
-
"height",
|
|
322
|
-
"min-height",
|
|
323
|
-
"max-height",
|
|
324
|
-
"aspect-ratio",
|
|
325
|
-
"padding",
|
|
326
|
-
"padding-block",
|
|
327
|
-
"padding-block-start",
|
|
328
|
-
"padding-block-end",
|
|
329
|
-
"padding-inline",
|
|
330
|
-
"padding-inline-start",
|
|
331
|
-
"padding-inline-end",
|
|
332
|
-
"padding-top",
|
|
333
|
-
"padding-right",
|
|
334
|
-
"padding-bottom",
|
|
335
|
-
"padding-left",
|
|
336
|
-
"margin",
|
|
337
|
-
"margin-block",
|
|
338
|
-
"margin-block-start",
|
|
339
|
-
"margin-block-end",
|
|
340
|
-
"margin-inline",
|
|
341
|
-
"margin-inline-start",
|
|
342
|
-
"margin-inline-end",
|
|
343
|
-
"margin-top",
|
|
344
|
-
"margin-right",
|
|
345
|
-
"margin-bottom",
|
|
346
|
-
"margin-left",
|
|
347
|
-
"overflow",
|
|
348
|
-
"overflow-block",
|
|
349
|
-
"overflow-inline",
|
|
350
|
-
"overflow-x",
|
|
351
|
-
"overflow-y",
|
|
352
|
-
"-webkit-overflow-scrolling",
|
|
353
|
-
"-ms-overflow-x",
|
|
354
|
-
"-ms-overflow-y",
|
|
355
|
-
"-ms-overflow-style",
|
|
356
|
-
"overscroll-behavior",
|
|
357
|
-
"overscroll-behavior-inline",
|
|
358
|
-
"overscroll-behavior-block",
|
|
359
|
-
"overscroll-behavior-x",
|
|
360
|
-
"overscroll-behavior-y",
|
|
361
|
-
"clip",
|
|
362
|
-
"clip-path",
|
|
363
|
-
"clear"
|
|
364
|
-
]
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
// Typography.
|
|
368
|
-
properties: [
|
|
369
|
-
"font",
|
|
370
|
-
"font-family",
|
|
371
|
-
"font-size",
|
|
372
|
-
"font-variation-settings",
|
|
373
|
-
"font-style",
|
|
374
|
-
"font-weight",
|
|
375
|
-
"font-feature-settings",
|
|
376
|
-
"font-optical-sizing",
|
|
377
|
-
"font-kerning",
|
|
378
|
-
"font-variant",
|
|
379
|
-
"font-variant-ligatures",
|
|
380
|
-
"font-variant-caps",
|
|
381
|
-
"font-variant-alternates",
|
|
382
|
-
"font-variant-numeric",
|
|
383
|
-
"font-variant-east-asian",
|
|
384
|
-
"font-variant-position",
|
|
385
|
-
"font-size-adjust",
|
|
386
|
-
"font-stretch",
|
|
387
|
-
"font-effect",
|
|
388
|
-
"font-emphasize",
|
|
389
|
-
"font-emphasize-position",
|
|
390
|
-
"font-emphasize-style",
|
|
391
|
-
"-webkit-font-smoothing",
|
|
392
|
-
"-moz-osx-font-smoothing",
|
|
393
|
-
"font-smooth",
|
|
394
|
-
"hyphens",
|
|
395
|
-
"line-height",
|
|
396
|
-
"color",
|
|
397
|
-
"text-align",
|
|
398
|
-
"text-align-last",
|
|
399
|
-
"text-emphasis",
|
|
400
|
-
"text-emphasis-color",
|
|
401
|
-
"text-emphasis-style",
|
|
402
|
-
"text-emphasis-position",
|
|
403
|
-
"text-decoration",
|
|
404
|
-
"text-decoration-line",
|
|
405
|
-
"text-decoration-thickness",
|
|
406
|
-
"text-decoration-style",
|
|
407
|
-
"text-decoration-color",
|
|
408
|
-
"text-underline-position",
|
|
409
|
-
"text-underline-offset",
|
|
410
|
-
"text-indent",
|
|
411
|
-
"text-justify",
|
|
412
|
-
"text-outline",
|
|
413
|
-
"-ms-text-overflow",
|
|
414
|
-
"text-overflow",
|
|
415
|
-
"text-overflow-ellipsis",
|
|
416
|
-
"text-overflow-mode",
|
|
417
|
-
"text-shadow",
|
|
418
|
-
"text-transform",
|
|
419
|
-
"text-wrap",
|
|
420
|
-
"-webkit-text-size-adjust",
|
|
421
|
-
"-ms-text-size-adjust",
|
|
422
|
-
"letter-spacing",
|
|
423
|
-
"word-break",
|
|
424
|
-
"word-spacing",
|
|
425
|
-
"word-wrap",
|
|
426
|
-
// Legacy name for `overflow-wrap`
|
|
427
|
-
"overflow-wrap",
|
|
428
|
-
"tab-size",
|
|
429
|
-
"white-space",
|
|
430
|
-
"vertical-align",
|
|
431
|
-
"list-style",
|
|
432
|
-
"list-style-position",
|
|
433
|
-
"list-style-type",
|
|
434
|
-
"list-style-image",
|
|
435
|
-
"src",
|
|
436
|
-
"font-display",
|
|
437
|
-
"unicode-range",
|
|
438
|
-
"size-adjust",
|
|
439
|
-
"ascent-override",
|
|
440
|
-
"descent-override",
|
|
441
|
-
"line-gap-override"
|
|
442
|
-
]
|
|
443
|
-
},
|
|
444
|
-
{
|
|
445
|
-
// Accessibility & Interactions.
|
|
446
|
-
properties: [
|
|
447
|
-
"appearance",
|
|
448
|
-
"accent-color",
|
|
449
|
-
"color-scheme",
|
|
450
|
-
"pointer-events",
|
|
451
|
-
"-ms-touch-action",
|
|
452
|
-
"touch-action",
|
|
453
|
-
"cursor",
|
|
454
|
-
"caret-color",
|
|
455
|
-
"visibility",
|
|
456
|
-
"zoom",
|
|
457
|
-
"table-layout",
|
|
458
|
-
"empty-cells",
|
|
459
|
-
"caption-side",
|
|
460
|
-
"border-spacing",
|
|
461
|
-
"border-collapse",
|
|
462
|
-
"content",
|
|
463
|
-
"quotes",
|
|
464
|
-
"counter-reset",
|
|
465
|
-
"counter-set",
|
|
466
|
-
"counter-increment",
|
|
467
|
-
"resize",
|
|
468
|
-
"user-select",
|
|
469
|
-
"nav-index",
|
|
470
|
-
"nav-up",
|
|
471
|
-
"nav-right",
|
|
472
|
-
"nav-down",
|
|
473
|
-
"nav-left"
|
|
474
|
-
]
|
|
475
|
-
},
|
|
476
|
-
{
|
|
477
|
-
// Background & Borders.
|
|
478
|
-
properties: [
|
|
479
|
-
"background",
|
|
480
|
-
"background-color",
|
|
481
|
-
"background-image",
|
|
482
|
-
"-ms-filter:\\'progid:DXImageTransform.Microsoft.gradient",
|
|
483
|
-
"filter:progid:DXImageTransform.Microsoft.gradient",
|
|
484
|
-
"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader",
|
|
485
|
-
"filter",
|
|
486
|
-
"background-repeat",
|
|
487
|
-
"background-attachment",
|
|
488
|
-
"background-position",
|
|
489
|
-
"background-position-x",
|
|
490
|
-
"background-position-y",
|
|
491
|
-
"background-clip",
|
|
492
|
-
"background-origin",
|
|
493
|
-
"background-size",
|
|
494
|
-
"background-blend-mode",
|
|
495
|
-
"isolation",
|
|
496
|
-
"backdrop-filter",
|
|
497
|
-
"border",
|
|
498
|
-
"border-color",
|
|
499
|
-
"border-style",
|
|
500
|
-
"border-width",
|
|
501
|
-
"border-block",
|
|
502
|
-
"border-block-start",
|
|
503
|
-
"border-block-start-color",
|
|
504
|
-
"border-block-start-style",
|
|
505
|
-
"border-block-start-width",
|
|
506
|
-
"border-block-end",
|
|
507
|
-
"border-block-end-color",
|
|
508
|
-
"border-block-end-style",
|
|
509
|
-
"border-block-end-width",
|
|
510
|
-
"border-inline",
|
|
511
|
-
"border-inline-start",
|
|
512
|
-
"border-inline-start-color",
|
|
513
|
-
"border-inline-start-style",
|
|
514
|
-
"border-inline-start-width",
|
|
515
|
-
"border-inline-end",
|
|
516
|
-
"border-inline-end-color",
|
|
517
|
-
"border-inline-end-style",
|
|
518
|
-
"border-inline-end-width",
|
|
519
|
-
"border-top",
|
|
520
|
-
"border-top-color",
|
|
521
|
-
"border-top-style",
|
|
522
|
-
"border-top-width",
|
|
523
|
-
"border-right",
|
|
524
|
-
"border-right-color",
|
|
525
|
-
"border-right-style",
|
|
526
|
-
"border-right-width",
|
|
527
|
-
"border-bottom",
|
|
528
|
-
"border-bottom-color",
|
|
529
|
-
"border-bottom-style",
|
|
530
|
-
"border-bottom-width",
|
|
531
|
-
"border-left",
|
|
532
|
-
"border-left-color",
|
|
533
|
-
"border-left-style",
|
|
534
|
-
"border-left-width",
|
|
535
|
-
"border-radius",
|
|
536
|
-
"border-start-start-radius",
|
|
537
|
-
"border-start-end-radius",
|
|
538
|
-
"border-end-start-radius",
|
|
539
|
-
"border-end-end-radius",
|
|
540
|
-
"border-top-left-radius",
|
|
541
|
-
"border-top-right-radius",
|
|
542
|
-
"border-bottom-right-radius",
|
|
543
|
-
"border-bottom-left-radius",
|
|
544
|
-
"border-image",
|
|
545
|
-
"border-image-source",
|
|
546
|
-
"border-image-slice",
|
|
547
|
-
"border-image-width",
|
|
548
|
-
"border-image-outset",
|
|
549
|
-
"border-image-repeat",
|
|
550
|
-
"outline",
|
|
551
|
-
"outline-width",
|
|
552
|
-
"outline-style",
|
|
553
|
-
"outline-color",
|
|
554
|
-
"outline-offset",
|
|
555
|
-
"box-shadow",
|
|
556
|
-
"mix-blend-mode",
|
|
557
|
-
"filter:progid:DXImageTransform.Microsoft.Alpha(Opacity",
|
|
558
|
-
"-ms-filter:\\'progid:DXImageTransform.Microsoft.Alpha",
|
|
559
|
-
"opacity",
|
|
560
|
-
"-ms-interpolation-mode"
|
|
561
|
-
]
|
|
562
|
-
},
|
|
563
|
-
{
|
|
564
|
-
// Masking.
|
|
565
|
-
properties: [
|
|
566
|
-
"mask-border",
|
|
567
|
-
"mask-border-source",
|
|
568
|
-
"mask-border-slice",
|
|
569
|
-
"mask-border-width",
|
|
570
|
-
"mask-border-outset",
|
|
571
|
-
"mask-border-repeat",
|
|
572
|
-
"mask-border-mode",
|
|
573
|
-
"mask",
|
|
574
|
-
"mask-image",
|
|
575
|
-
"mask-mode",
|
|
576
|
-
"mask-repeat",
|
|
577
|
-
"mask-position",
|
|
578
|
-
"mask-clip",
|
|
579
|
-
"mask-origin",
|
|
580
|
-
"mask-size",
|
|
581
|
-
"mask-composite"
|
|
582
|
-
]
|
|
583
|
-
},
|
|
584
|
-
{
|
|
585
|
-
// SVG Presentation Attributes.
|
|
586
|
-
properties: [
|
|
587
|
-
"alignment-baseline",
|
|
588
|
-
"baseline-shift",
|
|
589
|
-
"dominant-baseline",
|
|
590
|
-
"text-anchor",
|
|
591
|
-
"word-spacing",
|
|
592
|
-
"writing-mode",
|
|
593
|
-
"fill",
|
|
594
|
-
"fill-opacity",
|
|
595
|
-
"fill-rule",
|
|
596
|
-
"stroke",
|
|
597
|
-
"stroke-dasharray",
|
|
598
|
-
"stroke-dashoffset",
|
|
599
|
-
"stroke-linecap",
|
|
600
|
-
"stroke-linejoin",
|
|
601
|
-
"stroke-miterlimit",
|
|
602
|
-
"stroke-opacity",
|
|
603
|
-
"stroke-width",
|
|
604
|
-
"color-interpolation",
|
|
605
|
-
"color-interpolation-filters",
|
|
606
|
-
"color-profile",
|
|
607
|
-
"color-rendering",
|
|
608
|
-
"flood-color",
|
|
609
|
-
"flood-opacity",
|
|
610
|
-
"image-rendering",
|
|
611
|
-
"lighting-color",
|
|
612
|
-
"marker-start",
|
|
613
|
-
"marker-mid",
|
|
614
|
-
"marker-end",
|
|
615
|
-
"shape-rendering",
|
|
616
|
-
"stop-color",
|
|
617
|
-
"stop-opacity"
|
|
618
|
-
]
|
|
619
|
-
},
|
|
620
|
-
{
|
|
621
|
-
// Transitions & Animation.
|
|
622
|
-
properties: [
|
|
623
|
-
"transition",
|
|
624
|
-
"transition-delay",
|
|
625
|
-
"transition-timing-function",
|
|
626
|
-
"transition-duration",
|
|
627
|
-
"transition-property",
|
|
628
|
-
"transform",
|
|
629
|
-
"transform-origin",
|
|
630
|
-
"rotate",
|
|
631
|
-
"scale",
|
|
632
|
-
"translate",
|
|
633
|
-
"animation",
|
|
634
|
-
"animation-name",
|
|
635
|
-
"animation-duration",
|
|
636
|
-
"animation-play-state",
|
|
637
|
-
"animation-timing-function",
|
|
638
|
-
"animation-delay",
|
|
639
|
-
"animation-iteration-count",
|
|
640
|
-
"animation-direction"
|
|
641
|
-
]
|
|
675
|
+
severity: "error",
|
|
676
|
+
unspecified: "bottomAlphabetical",
|
|
677
|
+
emptyLineBeforeUnspecified: "always",
|
|
678
|
+
emptyLineMinimumPropertyThreshold: 5
|
|
642
679
|
}
|
|
643
680
|
]
|
|
644
681
|
};
|
|
@@ -649,11 +686,26 @@ var IGNORES = !CSS_IN_JS ? JS_EXT.map((ext) => `**/${ext}`) : [];
|
|
|
649
686
|
function stylelintConfig(options = {}, userConfig = {}) {
|
|
650
687
|
const { order = true, codeguide = true, scss = true, overrides = {}, rules = {} } = options;
|
|
651
688
|
const config = { ...userConfig };
|
|
652
|
-
config.extends =
|
|
653
|
-
|
|
654
|
-
|
|
689
|
+
config.extends = (0, import_utils.uniq)([
|
|
690
|
+
"stylelint-config-standard",
|
|
691
|
+
"stylelint-config-html",
|
|
692
|
+
...(0, import_utils.toArray)(config.extends)
|
|
693
|
+
]);
|
|
694
|
+
config.plugins = (0, import_utils.uniq)([
|
|
695
|
+
"stylelint-order",
|
|
696
|
+
"stylelint-codeguide",
|
|
697
|
+
...(0, import_utils.toArray)(config.plugins)
|
|
698
|
+
]);
|
|
699
|
+
config.ignoreFiles = (0, import_utils.uniq)([
|
|
700
|
+
...GLOB_EXCLUDE,
|
|
701
|
+
...IGNORES,
|
|
702
|
+
...(0, import_utils.toArray)(config.ignoreFiles)
|
|
703
|
+
]);
|
|
655
704
|
config.overrides = config.overrides ?? [];
|
|
656
|
-
config.rules = {
|
|
705
|
+
config.rules = {
|
|
706
|
+
...normalRules,
|
|
707
|
+
...config.rules || {}
|
|
708
|
+
};
|
|
657
709
|
if (order) {
|
|
658
710
|
;
|
|
659
711
|
config.plugins.push("stylelint-order");
|