@commencis/stylelint-config 1.0.0 → 1.1.0

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/scss.js CHANGED
@@ -1,8 +1,14 @@
1
1
  // src/rules/cssRules.ts
2
2
  var cssRules = {
3
+ // General
4
+ "selector-max-combinators": 4,
5
+ // Color
3
6
  "color-named": "never",
4
- "no-unknown-animations": true,
5
- "selector-max-combinators": 4
7
+ "color-function-notation": "legacy",
8
+ "alpha-value-notation": "number",
9
+ "color-hex-length": null,
10
+ // Animation
11
+ "no-unknown-animations": true
6
12
  };
7
13
 
8
14
  // src/utils/orderRuleCreators.ts
@@ -117,38 +123,40 @@ var orderRules = {
117
123
  "order/properties-order": [
118
124
  [
119
125
  createLogicalGroup("All", ["all", "page"]),
120
- createLogicalGroup(
121
- "Print",
122
- ["break-before", "break-inside", "break-after", "orphans", "widows"],
123
- "threshold"
124
- ),
126
+ createLogicalGroup("Print", [
127
+ "break-before",
128
+ "break-inside",
129
+ "break-after",
130
+ "orphans",
131
+ "widows"
132
+ ]),
125
133
  createLogicalGroup("Actions", [
126
134
  "cursor",
127
135
  "pointer-events",
128
136
  "touch-action",
129
137
  "resize"
130
138
  ]),
131
- createLogicalGroup(
132
- "User Actions",
133
- ["user-select", "user-zoom"],
134
- "threshold"
135
- ),
136
- createLogicalGroup("Content", ["content", "quotes"], "threshold"),
139
+ createLogicalGroup("User Actions", ["user-select", "user-zoom"], "never"),
140
+ createLogicalGroup("Content", ["content", "quotes"], "never"),
137
141
  createLogicalGroup(
138
142
  "Counter",
139
143
  ["counter-increment", "counter-set", "counter-reset"],
140
- "threshold"
144
+ "never"
145
+ ),
146
+ createLogicalGroup(
147
+ "List",
148
+ [
149
+ "list-style",
150
+ "list-style-type",
151
+ "list-style-position",
152
+ "list-style-image"
153
+ ],
154
+ "never"
141
155
  ),
142
- createLogicalGroup("List", [
143
- "list-style",
144
- "list-style-type",
145
- "list-style-position",
146
- "list-style-image"
147
- ]),
148
156
  createLogicalGroup(
149
157
  "Marker",
150
158
  ["marker", "marker-start", "marker-mid", "marker-end"],
151
- "threshold"
159
+ "never"
152
160
  ),
153
161
  createLogicalGroup("Display", [
154
162
  "display",
@@ -158,44 +166,60 @@ var orderRules = {
158
166
  "backface-visibility",
159
167
  "appearance"
160
168
  ]),
169
+ createLogicalGroup("Gap", ["gap", "column-gap", "row-gap"], "never"),
161
170
  createLogicalGroup(
162
- "Position",
171
+ "Alignment",
163
172
  [
164
- "position",
165
- "float",
166
- "clear",
167
- "offset",
168
- "offset-position",
169
- "offset-path",
170
- "offset-distance",
171
- "offset-rotate",
172
- "offset-anchor",
173
- "inset",
174
- "inset-block",
175
- "inset-block-start",
176
- "inset-block-end",
177
- "inset-inline",
178
- "inset-inline-start",
179
- "inset-inline-end",
180
- "top",
181
- "right",
182
- "bottom",
183
- "left",
184
- "z-index"
173
+ "place-content",
174
+ "place-items",
175
+ "place-self",
176
+ "align-content",
177
+ "align-items",
178
+ "align-self",
179
+ "justify-content",
180
+ "justify-items",
181
+ "justify-self"
185
182
  ],
186
- "threshold"
183
+ "never"
187
184
  ),
188
- createLogicalGroup("Outline", [
189
- "outline",
190
- "outline-width",
191
- "outline-style",
192
- "outline-color",
193
- "outline-offset"
185
+ createLogicalGroup("Position", [
186
+ "position",
187
+ "float",
188
+ "clear",
189
+ "offset",
190
+ "offset-position",
191
+ "offset-path",
192
+ "offset-distance",
193
+ "offset-rotate",
194
+ "offset-anchor",
195
+ "inset",
196
+ "inset-block",
197
+ "inset-block-start",
198
+ "inset-block-end",
199
+ "inset-inline",
200
+ "inset-inline-start",
201
+ "inset-inline-end",
202
+ "top",
203
+ "right",
204
+ "bottom",
205
+ "left",
206
+ "z-index"
194
207
  ]),
208
+ createLogicalGroup(
209
+ "Outline",
210
+ [
211
+ "outline",
212
+ "outline-width",
213
+ "outline-style",
214
+ "outline-color",
215
+ "outline-offset"
216
+ ],
217
+ "never"
218
+ ),
195
219
  createLogicalGroup(
196
220
  "Shape",
197
221
  ["shape-outside", "shape-margin", "shape-image-threshold"],
198
- "threshold"
222
+ "never"
199
223
  ),
200
224
  createLogicalGroup(
201
225
  "Mask",
@@ -218,7 +242,7 @@ var orderRules = {
218
242
  "mask-mode",
219
243
  "mask-composite"
220
244
  ],
221
- "threshold"
245
+ "never"
222
246
  ),
223
247
  createLogicalGroup("Margin", [
224
248
  "margin",
@@ -296,22 +320,18 @@ var orderRules = {
296
320
  "border-image-outset",
297
321
  "border-image-repeat"
298
322
  ],
299
- "threshold"
323
+ "never"
300
324
  ),
301
325
  createLogicalGroup(
302
326
  "Box",
303
327
  ["box-sizing", "box-decoration-break", "box-shadow"],
304
- "threshold"
305
- ),
306
- createLogicalGroup(
307
- "Object",
308
- ["object-fit", "object-position"],
309
- "threshold"
328
+ "never"
310
329
  ),
330
+ createLogicalGroup("Object", ["object-fit", "object-position"], "never"),
311
331
  createLogicalGroup(
312
332
  "container",
313
333
  ["container", "container-name", "container-type"],
314
- "threshold"
334
+ "never"
315
335
  ),
316
336
  createLogicalGroup(
317
337
  "Contain",
@@ -323,7 +343,39 @@ var orderRules = {
323
343
  "contain-intrinsic-height",
324
344
  "contain-intrinsic-width"
325
345
  ],
326
- "threshold"
346
+ "never"
347
+ ),
348
+ createLogicalGroup("Color", [
349
+ "color-scheme",
350
+ "accent-color",
351
+ "color",
352
+ "caret-color",
353
+ "forced-color-adjust",
354
+ "print-color-adjust"
355
+ ]),
356
+ createLogicalGroup("SVG", ["fill", "stroke", "paint-order"], "never"),
357
+ createLogicalGroup(
358
+ "Background",
359
+ [
360
+ "background",
361
+ "background-image",
362
+ "background-color",
363
+ "background-origin",
364
+ "background-size",
365
+ "background-position",
366
+ "background-position-y",
367
+ "background-position-x",
368
+ "background-repeat",
369
+ "background-attachment",
370
+ "background-clip",
371
+ "background-blend-mode"
372
+ ],
373
+ "never"
374
+ ),
375
+ createLogicalGroup(
376
+ "Filter",
377
+ ["filter", "backdrop-filter", "mix-blend-mode", "clip-path"],
378
+ "never"
327
379
  ),
328
380
  createLogicalGroup("Dimensions", [
329
381
  "aspect-ratio",
@@ -355,7 +407,7 @@ var orderRules = {
355
407
  "padding-bottom",
356
408
  "padding-left"
357
409
  ],
358
- "threshold"
410
+ "never"
359
411
  ),
360
412
  createLogicalGroup(
361
413
  "Overflow",
@@ -369,55 +421,7 @@ var orderRules = {
369
421
  "overflow-wrap",
370
422
  "overflow-anchor"
371
423
  ],
372
- "threshold"
373
- ),
374
- createLogicalGroup(
375
- "Overscroll",
376
- [
377
- "overscroll-behavior",
378
- "overscroll-behavior-block",
379
- "overscroll-behavior-inline",
380
- "overscroll-behavior-y",
381
- "overscroll-behavior-x"
382
- ],
383
- "threshold"
384
- ),
385
- createLogicalGroup(
386
- "Scroll",
387
- [
388
- "scroll-margin",
389
- "scroll-margin-block",
390
- "scroll-margin-block-start",
391
- "scroll-margin-block-end",
392
- "scroll-margin-inline",
393
- "scroll-margin-inline-start",
394
- "scroll-margin-inline-end",
395
- "scroll-margin-top",
396
- "scroll-margin-right",
397
- "scroll-margin-bottom",
398
- "scroll-margin-left",
399
- "scroll-padding",
400
- "scroll-padding-block",
401
- "scroll-padding-block-start",
402
- "scroll-padding-block-end",
403
- "scroll-padding-inline",
404
- "scroll-padding-inline-start",
405
- "scroll-padding-inline-end",
406
- "scroll-padding-top",
407
- "scroll-padding-right",
408
- "scroll-padding-bottom",
409
- "scroll-padding-left",
410
- "scroll-snap-type",
411
- "scroll-snap-align",
412
- "scroll-snap-stop",
413
- "scroll-behavior"
414
- ],
415
- "threshold"
416
- ),
417
- createLogicalGroup(
418
- "Scrollbar",
419
- ["scrollbar-gutter", "scrollbar-width", "scrollbar-color"],
420
- "threshold"
424
+ "never"
421
425
  ),
422
426
  createLogicalGroup(
423
427
  "Columns",
@@ -432,93 +436,96 @@ var orderRules = {
432
436
  "column-rule-style",
433
437
  "column-rule-color"
434
438
  ],
435
- "threshold"
436
- ),
437
- createLogicalGroup(
438
- "Grid",
439
- [
440
- "grid",
441
- "grid-area",
442
- "grid-template",
443
- "grid-template-areas",
444
- "grid-template-columns",
445
- "grid-template-rows",
446
- "grid-auto-flow",
447
- "grid-auto-columns",
448
- "grid-column",
449
- "grid-column-start",
450
- "grid-column-end",
451
- "grid-auto-rows",
452
- "grid-row",
453
- "grid-row-start",
454
- "grid-row-end",
455
- "gap",
456
- "column-gap",
457
- "row-gap"
458
- ],
459
- "threshold"
460
- ),
461
- createLogicalGroup(
462
- "Flex",
463
- [
464
- "flex",
465
- "flex-grow",
466
- "flex-shrink",
467
- "flex-basis",
468
- "flex-flow",
469
- "flex-direction",
470
- "flex-wrap",
471
- "order"
472
- ],
473
- "threshold"
474
- ),
475
- createLogicalGroup(
476
- "Table",
477
- [
478
- "table-layout",
479
- "border-spacing",
480
- "border-collapse",
481
- "empty-cells",
482
- "vertical-align",
483
- "caption-side"
484
- ],
485
- "threshold"
439
+ "never"
486
440
  ),
441
+ createLogicalGroup("Flex", [
442
+ "flex",
443
+ "flex-grow",
444
+ "flex-shrink",
445
+ "flex-basis",
446
+ "flex-flow",
447
+ "flex-direction",
448
+ "flex-wrap",
449
+ "order"
450
+ ]),
451
+ createLogicalGroup("Grid", [
452
+ "grid",
453
+ "grid-area",
454
+ "grid-template",
455
+ "grid-template-areas",
456
+ "grid-template-columns",
457
+ "grid-template-rows",
458
+ "grid-auto-flow",
459
+ "grid-auto-columns",
460
+ "grid-column",
461
+ "grid-column-start",
462
+ "grid-column-end",
463
+ "grid-auto-rows",
464
+ "grid-row",
465
+ "grid-row-start",
466
+ "grid-row-end"
467
+ ]),
468
+ createLogicalGroup("Table", [
469
+ "table-layout",
470
+ "border-spacing",
471
+ "border-collapse",
472
+ "empty-cells",
473
+ "vertical-align",
474
+ "caption-side"
475
+ ]),
476
+ createLogicalGroup("Image", ["image-orientation", "image-rendering"]),
477
+ createLogicalGroup("Font", [
478
+ "src",
479
+ "font",
480
+ "font-family",
481
+ "font-size",
482
+ "font-size-adjust",
483
+ "font-weight",
484
+ "font-style",
485
+ "font-display",
486
+ "font-palette",
487
+ "font-kerning",
488
+ "font-stretch",
489
+ "font-optical-sizing",
490
+ "font-language-override",
491
+ "font-feature-settings",
492
+ "font-synthesis",
493
+ "font-synthesis-weight",
494
+ "font-synthesis-style",
495
+ "font-synthesis-small-caps",
496
+ "font-variant",
497
+ "font-variant-position",
498
+ "font-variant-ligatures",
499
+ "font-variant-numeric",
500
+ "font-variant-emoji",
501
+ "font-variant-caps",
502
+ "font-variant-east-asian",
503
+ "font-variant-alternates",
504
+ "font-variation-settings"
505
+ ]),
487
506
  createLogicalGroup(
488
- "Alignment",
507
+ "Typography",
489
508
  [
490
- "place-content",
491
- "place-items",
492
- "place-self",
493
- "align-content",
494
- "align-items",
495
- "align-self",
496
- "justify-content",
497
- "justify-items",
498
- "justify-self"
509
+ "unicode-bidi",
510
+ "unicode-range",
511
+ "tab-size",
512
+ "direction",
513
+ "writing-mode",
514
+ "white-space",
515
+ "ruby-position",
516
+ "line-break",
517
+ "line-height",
518
+ "word-spacing",
519
+ "word-wrap",
520
+ "word-break",
521
+ "letter-spacing",
522
+ "hyphens",
523
+ "hyphenate-character",
524
+ "hyphenate-limit-chars",
525
+ "hanging-punctuation"
499
526
  ],
500
- "threshold"
527
+ "never"
501
528
  ),
502
- createLogicalGroup("Image", ["image-orientation", "image-rendering"]),
503
- createLogicalGroup("Typography", [
504
- "unicode-bidi",
505
- "unicode-range",
506
- "tab-size",
507
- "direction",
508
- "writing-mode",
509
- "white-space",
510
- "ruby-position",
511
- "line-break",
512
- "line-height",
513
- "word-spacing",
514
- "word-wrap",
515
- "word-break",
516
- "letter-spacing",
517
- "hyphens",
518
- "hyphenate-character",
519
- "hyphenate-limit-chars",
520
- "hanging-punctuation"
521
- ]),
522
529
  createLogicalGroup(
523
530
  "Text",
524
531
  [
@@ -547,74 +554,48 @@ var orderRules = {
547
554
  "text-underline-position",
548
555
  "text-underline-offset"
549
556
  ],
550
- "threshold"
557
+ "never"
551
558
  ),
552
- createLogicalGroup(
553
- "Font",
554
- [
555
- "src",
556
- "font",
557
- "font-family",
558
- "font-size",
559
- "font-size-adjust",
560
- "font-weight",
561
- "font-style",
562
- "font-display",
563
- "font-palette",
564
- "font-kerning",
565
- "font-stretch",
566
- "font-optical-sizing",
567
- "font-language-override",
568
- "font-feature-settings",
569
- "font-synthesis",
570
- "font-synthesis-weight",
571
- "font-synthesis-style",
572
- "font-synthesis-small-caps",
573
- "font-variant",
574
- "font-variant-position",
575
- "font-variant-ligatures",
576
- "font-variant-numeric",
577
- "font-variant-emoji",
578
- "font-variant-caps",
579
- "font-variant-east-asian",
580
- "font-variant-alternates",
581
- "font-variation-settings"
582
- ],
583
- "threshold"
584
- ),
585
- createLogicalGroup("Math", ["math-depth", "math-style"], "threshold"),
586
- createLogicalGroup("SVG", ["fill", "stroke", "paint-order"], "threshold"),
587
- createLogicalGroup(
588
- "Color",
589
- [
590
- "color-scheme",
591
- "accent-color",
592
- "color",
593
- "caret-color",
594
- "forced-color-adjust",
595
- "print-color-adjust"
596
- ],
597
- "threshold"
598
- ),
599
- createLogicalGroup("Background", [
600
- "background",
601
- "background-image",
602
- "background-color",
603
- "background-origin",
604
- "background-size",
605
- "background-position",
606
- "background-position-y",
607
- "background-position-x",
608
- "background-repeat",
609
- "background-attachment",
610
- "background-clip",
611
- "background-blend-mode"
559
+ createLogicalGroup("Math", ["math-depth", "math-style"]),
560
+ createLogicalGroup("Overscroll", [
561
+ "overscroll-behavior",
562
+ "overscroll-behavior-block",
563
+ "overscroll-behavior-inline",
564
+ "overscroll-behavior-y",
565
+ "overscroll-behavior-x"
566
+ ]),
567
+ createLogicalGroup("Scroll", [
568
+ "scroll-margin",
569
+ "scroll-margin-block",
570
+ "scroll-margin-block-start",
571
+ "scroll-margin-block-end",
572
+ "scroll-margin-inline",
573
+ "scroll-margin-inline-start",
574
+ "scroll-margin-inline-end",
575
+ "scroll-margin-top",
576
+ "scroll-margin-right",
577
+ "scroll-margin-bottom",
578
+ "scroll-margin-left",
579
+ "scroll-padding",
580
+ "scroll-padding-block",
581
+ "scroll-padding-block-start",
582
+ "scroll-padding-block-end",
583
+ "scroll-padding-inline",
584
+ "scroll-padding-inline-start",
585
+ "scroll-padding-inline-end",
586
+ "scroll-padding-top",
587
+ "scroll-padding-right",
588
+ "scroll-padding-bottom",
589
+ "scroll-padding-left",
590
+ "scroll-snap-type",
591
+ "scroll-snap-align",
592
+ "scroll-snap-stop",
593
+ "scroll-behavior"
612
594
  ]),
613
- createLogicalGroup("Filter", [
614
- "filter",
615
- "backdrop-filter",
616
- "mix-blend-mode",
617
- "clip-path"
595
+ createLogicalGroup("Scrollbar", [
596
+ "scrollbar-gutter",
597
+ "scrollbar-width",
598
+ "scrollbar-color"
618
599
  ]),
619
600
  createLogicalGroup("Transform", [
620
601
  "transform",
@@ -659,7 +640,18 @@ var orderRules = {
659
640
  // src/rules/scssRules.ts
660
641
  var scssRules = {
661
642
  "scss/dollar-variable-no-namespaced-assignment": true,
662
- "scss/no-duplicate-dollar-variables": true
643
+ "scss/no-duplicate-dollar-variables": true,
644
+ "scss/at-mixin-argumentless-call-parentheses": null,
645
+ "scss/dollar-variable-empty-line-before": [
646
+ "always",
647
+ {
648
+ ignore: [
649
+ "after-comment",
650
+ "inside-single-line-block",
651
+ "after-dollar-variable"
652
+ ]
653
+ }
654
+ ]
663
655
  };
664
656
 
665
657
  // src/rules/stylisticRules.ts