@commencis/stylelint-config 1.0.1 → 1.1.1

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.
@@ -16,9 +16,15 @@ var cssModulesRules = {
16
16
 
17
17
  // src/rules/cssRules.ts
18
18
  var cssRules = {
19
+ // General
20
+ "selector-max-combinators": 4,
21
+ // Color
19
22
  "color-named": "never",
20
- "no-unknown-animations": true,
21
- "selector-max-combinators": 4
23
+ "color-function-notation": "legacy",
24
+ "alpha-value-notation": "number",
25
+ "color-hex-length": null,
26
+ // Animation
27
+ "no-unknown-animations": true
22
28
  };
23
29
 
24
30
  // src/utils/orderRuleCreators.ts
@@ -133,38 +139,40 @@ var orderRules = {
133
139
  "order/properties-order": [
134
140
  [
135
141
  createLogicalGroup("All", ["all", "page"]),
136
- createLogicalGroup(
137
- "Print",
138
- ["break-before", "break-inside", "break-after", "orphans", "widows"],
139
- "threshold"
140
- ),
142
+ createLogicalGroup("Print", [
143
+ "break-before",
144
+ "break-inside",
145
+ "break-after",
146
+ "orphans",
147
+ "widows"
148
+ ]),
141
149
  createLogicalGroup("Actions", [
142
150
  "cursor",
143
151
  "pointer-events",
144
152
  "touch-action",
145
153
  "resize"
146
154
  ]),
147
- createLogicalGroup(
148
- "User Actions",
149
- ["user-select", "user-zoom"],
150
- "threshold"
151
- ),
152
- createLogicalGroup("Content", ["content", "quotes"], "threshold"),
155
+ createLogicalGroup("User Actions", ["user-select", "user-zoom"], "never"),
156
+ createLogicalGroup("Content", ["content", "quotes"], "never"),
153
157
  createLogicalGroup(
154
158
  "Counter",
155
159
  ["counter-increment", "counter-set", "counter-reset"],
156
- "threshold"
160
+ "never"
161
+ ),
162
+ createLogicalGroup(
163
+ "List",
164
+ [
165
+ "list-style",
166
+ "list-style-type",
167
+ "list-style-position",
168
+ "list-style-image"
169
+ ],
170
+ "never"
157
171
  ),
158
- createLogicalGroup("List", [
159
- "list-style",
160
- "list-style-type",
161
- "list-style-position",
162
- "list-style-image"
163
- ]),
164
172
  createLogicalGroup(
165
173
  "Marker",
166
174
  ["marker", "marker-start", "marker-mid", "marker-end"],
167
- "threshold"
175
+ "never"
168
176
  ),
169
177
  createLogicalGroup("Display", [
170
178
  "display",
@@ -174,44 +182,60 @@ var orderRules = {
174
182
  "backface-visibility",
175
183
  "appearance"
176
184
  ]),
185
+ createLogicalGroup("Gap", ["gap", "column-gap", "row-gap"], "never"),
177
186
  createLogicalGroup(
178
- "Position",
187
+ "Alignment",
179
188
  [
180
- "position",
181
- "float",
182
- "clear",
183
- "offset",
184
- "offset-position",
185
- "offset-path",
186
- "offset-distance",
187
- "offset-rotate",
188
- "offset-anchor",
189
- "inset",
190
- "inset-block",
191
- "inset-block-start",
192
- "inset-block-end",
193
- "inset-inline",
194
- "inset-inline-start",
195
- "inset-inline-end",
196
- "top",
197
- "right",
198
- "bottom",
199
- "left",
200
- "z-index"
189
+ "place-content",
190
+ "place-items",
191
+ "place-self",
192
+ "align-content",
193
+ "align-items",
194
+ "align-self",
195
+ "justify-content",
196
+ "justify-items",
197
+ "justify-self"
201
198
  ],
202
- "threshold"
199
+ "never"
203
200
  ),
204
- createLogicalGroup("Outline", [
205
- "outline",
206
- "outline-width",
207
- "outline-style",
208
- "outline-color",
209
- "outline-offset"
201
+ createLogicalGroup("Position", [
202
+ "position",
203
+ "float",
204
+ "clear",
205
+ "offset",
206
+ "offset-position",
207
+ "offset-path",
208
+ "offset-distance",
209
+ "offset-rotate",
210
+ "offset-anchor",
211
+ "inset",
212
+ "inset-block",
213
+ "inset-block-start",
214
+ "inset-block-end",
215
+ "inset-inline",
216
+ "inset-inline-start",
217
+ "inset-inline-end",
218
+ "top",
219
+ "right",
220
+ "bottom",
221
+ "left",
222
+ "z-index"
210
223
  ]),
224
+ createLogicalGroup(
225
+ "Outline",
226
+ [
227
+ "outline",
228
+ "outline-width",
229
+ "outline-style",
230
+ "outline-color",
231
+ "outline-offset"
232
+ ],
233
+ "never"
234
+ ),
211
235
  createLogicalGroup(
212
236
  "Shape",
213
237
  ["shape-outside", "shape-margin", "shape-image-threshold"],
214
- "threshold"
238
+ "never"
215
239
  ),
216
240
  createLogicalGroup(
217
241
  "Mask",
@@ -234,7 +258,7 @@ var orderRules = {
234
258
  "mask-mode",
235
259
  "mask-composite"
236
260
  ],
237
- "threshold"
261
+ "never"
238
262
  ),
239
263
  createLogicalGroup("Margin", [
240
264
  "margin",
@@ -312,22 +336,18 @@ var orderRules = {
312
336
  "border-image-outset",
313
337
  "border-image-repeat"
314
338
  ],
315
- "threshold"
339
+ "never"
316
340
  ),
317
341
  createLogicalGroup(
318
342
  "Box",
319
343
  ["box-sizing", "box-decoration-break", "box-shadow"],
320
- "threshold"
321
- ),
322
- createLogicalGroup(
323
- "Object",
324
- ["object-fit", "object-position"],
325
- "threshold"
344
+ "never"
326
345
  ),
346
+ createLogicalGroup("Object", ["object-fit", "object-position"], "never"),
327
347
  createLogicalGroup(
328
348
  "container",
329
349
  ["container", "container-name", "container-type"],
330
- "threshold"
350
+ "never"
331
351
  ),
332
352
  createLogicalGroup(
333
353
  "Contain",
@@ -339,7 +359,39 @@ var orderRules = {
339
359
  "contain-intrinsic-height",
340
360
  "contain-intrinsic-width"
341
361
  ],
342
- "threshold"
362
+ "never"
363
+ ),
364
+ createLogicalGroup("Color", [
365
+ "color-scheme",
366
+ "accent-color",
367
+ "color",
368
+ "caret-color",
369
+ "forced-color-adjust",
370
+ "print-color-adjust"
371
+ ]),
372
+ createLogicalGroup("SVG", ["fill", "stroke", "paint-order"], "never"),
373
+ createLogicalGroup(
374
+ "Background",
375
+ [
376
+ "background",
377
+ "background-image",
378
+ "background-color",
379
+ "background-origin",
380
+ "background-size",
381
+ "background-position",
382
+ "background-position-y",
383
+ "background-position-x",
384
+ "background-repeat",
385
+ "background-attachment",
386
+ "background-clip",
387
+ "background-blend-mode"
388
+ ],
389
+ "never"
390
+ ),
391
+ createLogicalGroup(
392
+ "Filter",
393
+ ["filter", "backdrop-filter", "mix-blend-mode", "clip-path"],
394
+ "never"
343
395
  ),
344
396
  createLogicalGroup("Dimensions", [
345
397
  "aspect-ratio",
@@ -371,7 +423,7 @@ var orderRules = {
371
423
  "padding-bottom",
372
424
  "padding-left"
373
425
  ],
374
- "threshold"
426
+ "never"
375
427
  ),
376
428
  createLogicalGroup(
377
429
  "Overflow",
@@ -385,55 +437,7 @@ var orderRules = {
385
437
  "overflow-wrap",
386
438
  "overflow-anchor"
387
439
  ],
388
- "threshold"
389
- ),
390
- createLogicalGroup(
391
- "Overscroll",
392
- [
393
- "overscroll-behavior",
394
- "overscroll-behavior-block",
395
- "overscroll-behavior-inline",
396
- "overscroll-behavior-y",
397
- "overscroll-behavior-x"
398
- ],
399
- "threshold"
400
- ),
401
- createLogicalGroup(
402
- "Scroll",
403
- [
404
- "scroll-margin",
405
- "scroll-margin-block",
406
- "scroll-margin-block-start",
407
- "scroll-margin-block-end",
408
- "scroll-margin-inline",
409
- "scroll-margin-inline-start",
410
- "scroll-margin-inline-end",
411
- "scroll-margin-top",
412
- "scroll-margin-right",
413
- "scroll-margin-bottom",
414
- "scroll-margin-left",
415
- "scroll-padding",
416
- "scroll-padding-block",
417
- "scroll-padding-block-start",
418
- "scroll-padding-block-end",
419
- "scroll-padding-inline",
420
- "scroll-padding-inline-start",
421
- "scroll-padding-inline-end",
422
- "scroll-padding-top",
423
- "scroll-padding-right",
424
- "scroll-padding-bottom",
425
- "scroll-padding-left",
426
- "scroll-snap-type",
427
- "scroll-snap-align",
428
- "scroll-snap-stop",
429
- "scroll-behavior"
430
- ],
431
- "threshold"
432
- ),
433
- createLogicalGroup(
434
- "Scrollbar",
435
- ["scrollbar-gutter", "scrollbar-width", "scrollbar-color"],
436
- "threshold"
440
+ "never"
437
441
  ),
438
442
  createLogicalGroup(
439
443
  "Columns",
@@ -448,93 +452,96 @@ var orderRules = {
448
452
  "column-rule-style",
449
453
  "column-rule-color"
450
454
  ],
451
- "threshold"
452
- ),
453
- createLogicalGroup(
454
- "Grid",
455
- [
456
- "grid",
457
- "grid-area",
458
- "grid-template",
459
- "grid-template-areas",
460
- "grid-template-columns",
461
- "grid-template-rows",
462
- "grid-auto-flow",
463
- "grid-auto-columns",
464
- "grid-column",
465
- "grid-column-start",
466
- "grid-column-end",
467
- "grid-auto-rows",
468
- "grid-row",
469
- "grid-row-start",
470
- "grid-row-end",
471
- "gap",
472
- "column-gap",
473
- "row-gap"
474
- ],
475
- "threshold"
476
- ),
477
- createLogicalGroup(
478
- "Flex",
479
- [
480
- "flex",
481
- "flex-grow",
482
- "flex-shrink",
483
- "flex-basis",
484
- "flex-flow",
485
- "flex-direction",
486
- "flex-wrap",
487
- "order"
488
- ],
489
- "threshold"
490
- ),
491
- createLogicalGroup(
492
- "Table",
493
- [
494
- "table-layout",
495
- "border-spacing",
496
- "border-collapse",
497
- "empty-cells",
498
- "vertical-align",
499
- "caption-side"
500
- ],
501
- "threshold"
455
+ "never"
502
456
  ),
457
+ createLogicalGroup("Flex", [
458
+ "flex",
459
+ "flex-grow",
460
+ "flex-shrink",
461
+ "flex-basis",
462
+ "flex-flow",
463
+ "flex-direction",
464
+ "flex-wrap",
465
+ "order"
466
+ ]),
467
+ createLogicalGroup("Grid", [
468
+ "grid",
469
+ "grid-area",
470
+ "grid-template",
471
+ "grid-template-areas",
472
+ "grid-template-columns",
473
+ "grid-template-rows",
474
+ "grid-auto-flow",
475
+ "grid-auto-columns",
476
+ "grid-column",
477
+ "grid-column-start",
478
+ "grid-column-end",
479
+ "grid-auto-rows",
480
+ "grid-row",
481
+ "grid-row-start",
482
+ "grid-row-end"
483
+ ]),
484
+ createLogicalGroup("Table", [
485
+ "table-layout",
486
+ "border-spacing",
487
+ "border-collapse",
488
+ "empty-cells",
489
+ "vertical-align",
490
+ "caption-side"
491
+ ]),
492
+ createLogicalGroup("Image", ["image-orientation", "image-rendering"]),
493
+ createLogicalGroup("Font", [
494
+ "src",
495
+ "font",
496
+ "font-family",
497
+ "font-size",
498
+ "font-size-adjust",
499
+ "font-weight",
500
+ "font-style",
501
+ "font-display",
502
+ "font-palette",
503
+ "font-kerning",
504
+ "font-stretch",
505
+ "font-optical-sizing",
506
+ "font-language-override",
507
+ "font-feature-settings",
508
+ "font-synthesis",
509
+ "font-synthesis-weight",
510
+ "font-synthesis-style",
511
+ "font-synthesis-small-caps",
512
+ "font-variant",
513
+ "font-variant-position",
514
+ "font-variant-ligatures",
515
+ "font-variant-numeric",
516
+ "font-variant-emoji",
517
+ "font-variant-caps",
518
+ "font-variant-east-asian",
519
+ "font-variant-alternates",
520
+ "font-variation-settings"
521
+ ]),
503
522
  createLogicalGroup(
504
- "Alignment",
523
+ "Typography",
505
524
  [
506
- "place-content",
507
- "place-items",
508
- "place-self",
509
- "align-content",
510
- "align-items",
511
- "align-self",
512
- "justify-content",
513
- "justify-items",
514
- "justify-self"
525
+ "unicode-bidi",
526
+ "unicode-range",
527
+ "tab-size",
528
+ "direction",
529
+ "writing-mode",
530
+ "white-space",
531
+ "ruby-position",
532
+ "line-break",
533
+ "line-height",
534
+ "word-spacing",
535
+ "word-wrap",
536
+ "word-break",
537
+ "letter-spacing",
538
+ "hyphens",
539
+ "hyphenate-character",
540
+ "hyphenate-limit-chars",
541
+ "hanging-punctuation"
515
542
  ],
516
- "threshold"
543
+ "never"
517
544
  ),
518
- createLogicalGroup("Image", ["image-orientation", "image-rendering"]),
519
- createLogicalGroup("Typography", [
520
- "unicode-bidi",
521
- "unicode-range",
522
- "tab-size",
523
- "direction",
524
- "writing-mode",
525
- "white-space",
526
- "ruby-position",
527
- "line-break",
528
- "line-height",
529
- "word-spacing",
530
- "word-wrap",
531
- "word-break",
532
- "letter-spacing",
533
- "hyphens",
534
- "hyphenate-character",
535
- "hyphenate-limit-chars",
536
- "hanging-punctuation"
537
- ]),
538
545
  createLogicalGroup(
539
546
  "Text",
540
547
  [
@@ -563,74 +570,48 @@ var orderRules = {
563
570
  "text-underline-position",
564
571
  "text-underline-offset"
565
572
  ],
566
- "threshold"
567
- ),
568
- createLogicalGroup(
569
- "Font",
570
- [
571
- "src",
572
- "font",
573
- "font-family",
574
- "font-size",
575
- "font-size-adjust",
576
- "font-weight",
577
- "font-style",
578
- "font-display",
579
- "font-palette",
580
- "font-kerning",
581
- "font-stretch",
582
- "font-optical-sizing",
583
- "font-language-override",
584
- "font-feature-settings",
585
- "font-synthesis",
586
- "font-synthesis-weight",
587
- "font-synthesis-style",
588
- "font-synthesis-small-caps",
589
- "font-variant",
590
- "font-variant-position",
591
- "font-variant-ligatures",
592
- "font-variant-numeric",
593
- "font-variant-emoji",
594
- "font-variant-caps",
595
- "font-variant-east-asian",
596
- "font-variant-alternates",
597
- "font-variation-settings"
598
- ],
599
- "threshold"
573
+ "never"
600
574
  ),
601
- createLogicalGroup("Math", ["math-depth", "math-style"], "threshold"),
602
- createLogicalGroup("SVG", ["fill", "stroke", "paint-order"], "threshold"),
603
- createLogicalGroup(
604
- "Color",
605
- [
606
- "color-scheme",
607
- "accent-color",
608
- "color",
609
- "caret-color",
610
- "forced-color-adjust",
611
- "print-color-adjust"
612
- ],
613
- "threshold"
614
- ),
615
- createLogicalGroup("Background", [
616
- "background",
617
- "background-image",
618
- "background-color",
619
- "background-origin",
620
- "background-size",
621
- "background-position",
622
- "background-position-y",
623
- "background-position-x",
624
- "background-repeat",
625
- "background-attachment",
626
- "background-clip",
627
- "background-blend-mode"
575
+ createLogicalGroup("Math", ["math-depth", "math-style"]),
576
+ createLogicalGroup("Overscroll", [
577
+ "overscroll-behavior",
578
+ "overscroll-behavior-block",
579
+ "overscroll-behavior-inline",
580
+ "overscroll-behavior-y",
581
+ "overscroll-behavior-x"
582
+ ]),
583
+ createLogicalGroup("Scroll", [
584
+ "scroll-margin",
585
+ "scroll-margin-block",
586
+ "scroll-margin-block-start",
587
+ "scroll-margin-block-end",
588
+ "scroll-margin-inline",
589
+ "scroll-margin-inline-start",
590
+ "scroll-margin-inline-end",
591
+ "scroll-margin-top",
592
+ "scroll-margin-right",
593
+ "scroll-margin-bottom",
594
+ "scroll-margin-left",
595
+ "scroll-padding",
596
+ "scroll-padding-block",
597
+ "scroll-padding-block-start",
598
+ "scroll-padding-block-end",
599
+ "scroll-padding-inline",
600
+ "scroll-padding-inline-start",
601
+ "scroll-padding-inline-end",
602
+ "scroll-padding-top",
603
+ "scroll-padding-right",
604
+ "scroll-padding-bottom",
605
+ "scroll-padding-left",
606
+ "scroll-snap-type",
607
+ "scroll-snap-align",
608
+ "scroll-snap-stop",
609
+ "scroll-behavior"
628
610
  ]),
629
- createLogicalGroup("Filter", [
630
- "filter",
631
- "backdrop-filter",
632
- "mix-blend-mode",
633
- "clip-path"
611
+ createLogicalGroup("Scrollbar", [
612
+ "scrollbar-gutter",
613
+ "scrollbar-width",
614
+ "scrollbar-color"
634
615
  ]),
635
616
  createLogicalGroup("Transform", [
636
617
  "transform",