@commencis/stylelint-config 1.0.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/vue.js ADDED
@@ -0,0 +1,709 @@
1
+ // src/rules/cssRules.ts
2
+ var cssRules = {
3
+ "color-named": "never",
4
+ "no-unknown-animations": true,
5
+ "selector-max-combinators": 4
6
+ };
7
+
8
+ // src/utils/orderRuleCreators.ts
9
+ function createLogicalGroup(groupName, properties, emptyLineBefore = "always") {
10
+ return {
11
+ groupName,
12
+ properties,
13
+ emptyLineBefore,
14
+ noEmptyLineBetween: true,
15
+ order: "flexible"
16
+ };
17
+ }
18
+ function createAtRule(name, hasBlock) {
19
+ return {
20
+ name,
21
+ hasBlock,
22
+ type: "at-rule"
23
+ };
24
+ }
25
+ function createRule(selector) {
26
+ return {
27
+ selector: `&${selector}`,
28
+ type: "rule"
29
+ };
30
+ }
31
+
32
+ // src/rules/orderRules.ts
33
+ var orderRules = {
34
+ "declaration-empty-line-before": null,
35
+ "order/order": [
36
+ "custom-properties",
37
+ "dollar-variables",
38
+ createAtRule("include", false),
39
+ "declarations",
40
+ createRule("::selection"),
41
+ createRule("::backdrop"),
42
+ createRule("::before"),
43
+ createRule("::after"),
44
+ createRule("::marker"),
45
+ createRule("::first-line"),
46
+ createRule("::first-letter"),
47
+ createRule("::cue"),
48
+ createRule("::cue-region"),
49
+ createRule("::placeholder"),
50
+ createRule("::file-selector-button"),
51
+ createRule("::highlight"),
52
+ createRule("::part"),
53
+ createRule("::slotted"),
54
+ createRule(":root"),
55
+ createRule(":lang"),
56
+ createRule(":scope"),
57
+ createRule(":modal"),
58
+ createRule(":past"),
59
+ createRule(":current"),
60
+ createRule(":future"),
61
+ createRule(":where"),
62
+ createRule(":is"),
63
+ createRule(":has"),
64
+ createRule(":not"),
65
+ createRule(":empty"),
66
+ createRule(":target"),
67
+ createRule(":link"),
68
+ createRule(":local-link"),
69
+ createRule(":any-link"),
70
+ createRule(":defined"),
71
+ createRule(":buffering"),
72
+ createRule(":placeholder-shown"),
73
+ createRule(":right"),
74
+ createRule(":left"),
75
+ createRule(":host"),
76
+ createRule(":host-content"),
77
+ createRule(":only-of-type"),
78
+ createRule(":first-of-type"),
79
+ createRule(":nth-of-type"),
80
+ createRule(":last-of-type"),
81
+ createRule(":nth-last-of-type"),
82
+ createRule(":only-child"),
83
+ createRule(":first"),
84
+ createRule(":first-child"),
85
+ createRule(":nth-child"),
86
+ createRule(":last-child"),
87
+ createRule(":nth-last-child"),
88
+ createRule(":default"),
89
+ createRule(":enabled"),
90
+ createRule(":disabled"),
91
+ createRule(":hover"),
92
+ createRule(":focus"),
93
+ createRule(":focus-within"),
94
+ createRule(":focus-visible"),
95
+ createRule(":active"),
96
+ createRule(":checked"),
97
+ createRule(":visited"),
98
+ createRule(":indeterminate"),
99
+ createRule(":in-range"),
100
+ createRule(":out-of-range"),
101
+ createRule(":valid"),
102
+ createRule(":invalid"),
103
+ createRule(":user-valid"),
104
+ createRule(":user-invalid"),
105
+ createRule(":read-only"),
106
+ createRule(":read-write"),
107
+ createRule(":optional"),
108
+ createRule(":required"),
109
+ createRule(":popover-open"),
110
+ createRule(":fullscreen"),
111
+ createRule(":picture-in-picture"),
112
+ createRule(":autofill"),
113
+ "rules",
114
+ createAtRule("include", true),
115
+ "at-rules"
116
+ ],
117
+ "order/properties-order": [
118
+ [
119
+ createLogicalGroup("All", ["all", "page"]),
120
+ createLogicalGroup(
121
+ "Print",
122
+ ["break-before", "break-inside", "break-after", "orphans", "widows"],
123
+ "threshold"
124
+ ),
125
+ createLogicalGroup("Actions", [
126
+ "cursor",
127
+ "pointer-events",
128
+ "touch-action",
129
+ "resize"
130
+ ]),
131
+ createLogicalGroup(
132
+ "User Actions",
133
+ ["user-select", "user-zoom"],
134
+ "threshold"
135
+ ),
136
+ createLogicalGroup("Content", ["content", "quotes"], "threshold"),
137
+ createLogicalGroup(
138
+ "Counter",
139
+ ["counter-increment", "counter-set", "counter-reset"],
140
+ "threshold"
141
+ ),
142
+ createLogicalGroup("List", [
143
+ "list-style",
144
+ "list-style-type",
145
+ "list-style-position",
146
+ "list-style-image"
147
+ ]),
148
+ createLogicalGroup(
149
+ "Marker",
150
+ ["marker", "marker-start", "marker-mid", "marker-end"],
151
+ "threshold"
152
+ ),
153
+ createLogicalGroup("Display", [
154
+ "display",
155
+ "opacity",
156
+ "isolation",
157
+ "visibility",
158
+ "backface-visibility",
159
+ "appearance"
160
+ ]),
161
+ createLogicalGroup(
162
+ "Position",
163
+ [
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"
185
+ ],
186
+ "threshold"
187
+ ),
188
+ createLogicalGroup("Outline", [
189
+ "outline",
190
+ "outline-width",
191
+ "outline-style",
192
+ "outline-color",
193
+ "outline-offset"
194
+ ]),
195
+ createLogicalGroup(
196
+ "Shape",
197
+ ["shape-outside", "shape-margin", "shape-image-threshold"],
198
+ "threshold"
199
+ ),
200
+ createLogicalGroup(
201
+ "Mask",
202
+ [
203
+ "mask",
204
+ "mask-border",
205
+ "mask-border-source",
206
+ "mask-border-slice",
207
+ "mask-border-width",
208
+ "mask-border-outset",
209
+ "mask-border-repeat",
210
+ "mask-border-mode",
211
+ "mask-image",
212
+ "mask-clip",
213
+ "mask-origin",
214
+ "mask-type",
215
+ "mask-size",
216
+ "mask-position",
217
+ "mask-repeat",
218
+ "mask-mode",
219
+ "mask-composite"
220
+ ],
221
+ "threshold"
222
+ ),
223
+ createLogicalGroup("Margin", [
224
+ "margin",
225
+ "margin-block",
226
+ "margin-block-start",
227
+ "margin-block-end",
228
+ "margin-inline",
229
+ "margin-inline-start",
230
+ "margin-inline-end",
231
+ "margin-top",
232
+ "margin-right",
233
+ "margin-bottom",
234
+ "margin-left"
235
+ ]),
236
+ createLogicalGroup(
237
+ "Border",
238
+ [
239
+ "border",
240
+ "border-width",
241
+ "border-style",
242
+ "border-color",
243
+ "border-radius",
244
+ "border-start-start-radius",
245
+ "border-start-end-radius",
246
+ "border-end-start-radius",
247
+ "border-end-end-radius",
248
+ "border-block",
249
+ "border-block-width",
250
+ "border-block-style",
251
+ "border-block-color",
252
+ "border-block-start",
253
+ "border-block-start-width",
254
+ "border-block-start-style",
255
+ "border-block-start-color",
256
+ "border-block-end",
257
+ "border-block-end-width",
258
+ "border-block-end-style",
259
+ "border-block-end-color",
260
+ "border-inline",
261
+ "border-inline-width",
262
+ "border-inline-style",
263
+ "border-inline-color",
264
+ "border-inline-start",
265
+ "border-inline-start-width",
266
+ "border-inline-start-style",
267
+ "border-inline-start-color",
268
+ "border-inline-end",
269
+ "border-inline-end-width",
270
+ "border-inline-end-style",
271
+ "border-inline-end-color",
272
+ "border-top",
273
+ "border-top-left-radius",
274
+ "border-top-right-radius",
275
+ "border-top-width",
276
+ "border-top-style",
277
+ "border-top-color",
278
+ "border-right",
279
+ "border-right-width",
280
+ "border-right-style",
281
+ "border-right-color",
282
+ "border-bottom",
283
+ "border-bottom-left-radius",
284
+ "border-bottom-right-radius",
285
+ "border-bottom-width",
286
+ "border-bottom-style",
287
+ "border-bottom-color",
288
+ "border-left",
289
+ "border-left-width",
290
+ "border-left-style",
291
+ "border-left-color",
292
+ "border-image",
293
+ "border-image-source",
294
+ "border-image-slice",
295
+ "border-image-width",
296
+ "border-image-outset",
297
+ "border-image-repeat"
298
+ ],
299
+ "threshold"
300
+ ),
301
+ createLogicalGroup(
302
+ "Box",
303
+ ["box-sizing", "box-decoration-break", "box-shadow"],
304
+ "threshold"
305
+ ),
306
+ createLogicalGroup(
307
+ "Object",
308
+ ["object-fit", "object-position"],
309
+ "threshold"
310
+ ),
311
+ createLogicalGroup(
312
+ "container",
313
+ ["container", "container-name", "container-type"],
314
+ "threshold"
315
+ ),
316
+ createLogicalGroup(
317
+ "Contain",
318
+ [
319
+ "contain",
320
+ "contain-intrinsic-size",
321
+ "contain-intrinsic-block-size",
322
+ "contain-intrinsic-inline-size",
323
+ "contain-intrinsic-height",
324
+ "contain-intrinsic-width"
325
+ ],
326
+ "threshold"
327
+ ),
328
+ createLogicalGroup("Dimensions", [
329
+ "aspect-ratio",
330
+ "block-size",
331
+ "min-block-size",
332
+ "max-block-size",
333
+ "inline-size",
334
+ "min-inline-size",
335
+ "max-inline-size",
336
+ "height",
337
+ "min-height",
338
+ "max-height",
339
+ "width",
340
+ "min-width",
341
+ "max-width"
342
+ ]),
343
+ createLogicalGroup(
344
+ "Padding",
345
+ [
346
+ "padding",
347
+ "padding-block",
348
+ "padding-block-start",
349
+ "padding-block-end",
350
+ "padding-inline",
351
+ "padding-inline-start",
352
+ "padding-inline-end",
353
+ "padding-top",
354
+ "padding-right",
355
+ "padding-bottom",
356
+ "padding-left"
357
+ ],
358
+ "threshold"
359
+ ),
360
+ createLogicalGroup(
361
+ "Overflow",
362
+ [
363
+ "overflow",
364
+ "overflow-clip-margin",
365
+ "overflow-block",
366
+ "overflow-inline",
367
+ "overflow-y",
368
+ "overflow-x",
369
+ "overflow-wrap",
370
+ "overflow-anchor"
371
+ ],
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"
421
+ ),
422
+ createLogicalGroup(
423
+ "Columns",
424
+ [
425
+ "columns",
426
+ "column-width",
427
+ "column-count",
428
+ "column-fill",
429
+ "column-span",
430
+ "column-rule",
431
+ "column-rule-width",
432
+ "column-rule-style",
433
+ "column-rule-color"
434
+ ],
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"
486
+ ),
487
+ createLogicalGroup(
488
+ "Alignment",
489
+ [
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"
499
+ ],
500
+ "threshold"
501
+ ),
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
+ createLogicalGroup(
523
+ "Text",
524
+ [
525
+ "text-overflow",
526
+ "text-rendering",
527
+ "text-indent",
528
+ "text-justify",
529
+ "text-orientation",
530
+ "text-shadow",
531
+ "text-transform",
532
+ "text-anchor",
533
+ "text-wrap",
534
+ "text-align",
535
+ "text-align-last",
536
+ "text-combine-upright",
537
+ "text-decoration",
538
+ "text-decoration-skip-ink",
539
+ "text-decoration-thickness",
540
+ "text-decoration-line",
541
+ "text-decoration-style",
542
+ "text-decoration-color",
543
+ "text-emphasis",
544
+ "text-emphasis-position",
545
+ "text-emphasis-style",
546
+ "text-emphasis-color",
547
+ "text-underline-position",
548
+ "text-underline-offset"
549
+ ],
550
+ "threshold"
551
+ ),
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"
612
+ ]),
613
+ createLogicalGroup("Filter", [
614
+ "filter",
615
+ "backdrop-filter",
616
+ "mix-blend-mode",
617
+ "clip-path"
618
+ ]),
619
+ createLogicalGroup("Transform", [
620
+ "transform",
621
+ "transform-origin",
622
+ "transform-box",
623
+ "transform-style",
624
+ "translate",
625
+ "scale",
626
+ "rotate",
627
+ "will-change",
628
+ "perspective",
629
+ "perspective-origin"
630
+ ]),
631
+ createLogicalGroup("Transition", [
632
+ "transition",
633
+ "transition-property",
634
+ "transition-duration",
635
+ "transition-timing-function",
636
+ "transition-delay"
637
+ ]),
638
+ createLogicalGroup("Animation", [
639
+ "animation",
640
+ "animation-name",
641
+ "animation-duration",
642
+ "animation-timing-function",
643
+ "animation-delay",
644
+ "animation-iteration-count",
645
+ "animation-direction",
646
+ "animation-fill-mode",
647
+ "animation-play-state",
648
+ "animation-composition"
649
+ ])
650
+ ],
651
+ {
652
+ unspecified: "bottomAlphabetical",
653
+ emptyLineBeforeUnspecified: "threshold",
654
+ emptyLineMinimumPropertyThreshold: 4
655
+ }
656
+ ]
657
+ };
658
+
659
+ // src/rules/vueCssRules.ts
660
+ var vueCssRules = {
661
+ "selector-pseudo-class-no-unknown": [
662
+ true,
663
+ {
664
+ ignorePseudoClasses: ["deep", "global", "slotted"]
665
+ }
666
+ ],
667
+ "selector-pseudo-element-no-unknown": [
668
+ true,
669
+ {
670
+ ignorePseudoElements: ["v-deep", "v-global", "v-slotted"]
671
+ }
672
+ ]
673
+ };
674
+
675
+ // src/rules/stylisticRules.ts
676
+ var stylisticRules = {
677
+ "@stylistic/string-quotes": "single"
678
+ };
679
+
680
+ // src/configs/css.ts
681
+ var cssConfig = {
682
+ extends: ["stylelint-config-standard", "@stylistic/stylelint-config"],
683
+ plugins: ["stylelint-order"],
684
+ rules: {
685
+ ...cssRules,
686
+ ...orderRules,
687
+ ...stylisticRules
688
+ }
689
+ };
690
+ var css_default = cssConfig;
691
+
692
+ // src/configs/vue.ts
693
+ var vueCssConfig = {
694
+ ...css_default,
695
+ overrides: [
696
+ {
697
+ files: ["*.vue", "**/*.vue"],
698
+ extends: [...css_default.extends ?? [], "stylelint-config-html"],
699
+ rules: {
700
+ ...css_default.rules,
701
+ ...vueCssRules
702
+ }
703
+ }
704
+ ]
705
+ };
706
+ var vue_default = vueCssConfig;
707
+ export {
708
+ vue_default as default
709
+ };