stylelint-config-pepelsbey 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/LICENSE.md ADDED
@@ -0,0 +1,9 @@
1
+ # The MIT License
2
+
3
+ Copyright 2025-present Vadim Makeev
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,42 @@
1
+ # stylelint-config-pepelsbey
2
+
3
+ My [Stylelint](https://stylelint.io/) config.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install --save-dev stylelint-config-pepelsbey
9
+ ```
10
+
11
+ This config requires the following peer dependencies:
12
+
13
+ - `stylelint`
14
+ - `stylelint-order`
15
+
16
+ If you don’t have them installed:
17
+
18
+ ```bash
19
+ npm install --save-dev stylelint stylelint-order
20
+ ```
21
+
22
+ ## Usage
23
+
24
+ Add the config to your `stylelint.config.js`:
25
+
26
+ ```js
27
+ export default {
28
+ extends: ['stylelint-config-pepelsbey'],
29
+ };
30
+ ```
31
+
32
+ Or in `stylelint.config.js`:
33
+
34
+ ```js
35
+ import config from 'stylelint-config-pepelsbey';
36
+
37
+ export default config;
38
+ ```
39
+
40
+ ## License
41
+
42
+ MIT
package/index.js ADDED
@@ -0,0 +1,37 @@
1
+ import { propertiesOrder } from './order.js';
2
+
3
+ export default {
4
+ plugins: ['stylelint-order'],
5
+ rules: {
6
+ 'order/order': [
7
+ [
8
+ 'custom-properties',
9
+ 'declarations',
10
+ 'rules',
11
+ ],
12
+ {
13
+ severity: 'warning'
14
+ },
15
+ ],
16
+ 'order/properties-order': [
17
+ propertiesOrder,
18
+ {
19
+ unspecified: 'bottom',
20
+ severity: 'warning',
21
+ },
22
+ ],
23
+ 'rule-empty-line-before': [
24
+ 'always-multi-line',
25
+ {
26
+ except: ['first-nested'],
27
+ },
28
+ ],
29
+ 'at-rule-empty-line-before': [
30
+ 'always',
31
+ {
32
+ except: ['first-nested'],
33
+ ignoreAtRules: ['import'],
34
+ },
35
+ ],
36
+ },
37
+ };
package/order.js ADDED
@@ -0,0 +1,630 @@
1
+ export const propertiesOrder = [
2
+ 'all',
3
+
4
+ 'position',
5
+ 'position-anchor',
6
+ 'position-area',
7
+ 'position-try-fallbacks',
8
+ 'position-try-order',
9
+ 'position-try',
10
+ 'position-visibility',
11
+
12
+ 'top',
13
+ 'right',
14
+ 'bottom',
15
+ 'left',
16
+
17
+ 'inset',
18
+ 'inset-inline',
19
+ 'inset-inline-start',
20
+ 'inset-inline-end',
21
+ 'inset-block',
22
+ 'inset-block-start',
23
+ 'inset-block-end',
24
+
25
+ 'anchor-name',
26
+ 'anchor-scope',
27
+
28
+ 'z-index',
29
+
30
+ 'display',
31
+
32
+ 'grid',
33
+ 'grid-template',
34
+ 'grid-template-rows',
35
+ 'grid-template-columns',
36
+ 'grid-template-areas',
37
+ 'grid-auto-rows',
38
+ 'grid-auto-columns',
39
+ 'grid-auto-flow',
40
+ 'grid-area',
41
+ 'grid-row',
42
+ 'grid-row-start',
43
+ 'grid-row-end',
44
+ 'grid-column',
45
+ 'grid-column-start',
46
+ 'grid-column-end',
47
+
48
+ 'flex',
49
+ 'flex-grow',
50
+ 'flex-shrink',
51
+ 'flex-basis',
52
+ 'flex-flow',
53
+ 'flex-direction',
54
+ 'flex-wrap',
55
+
56
+ 'box-flex',
57
+ 'box-flex-group',
58
+ 'box-orient',
59
+ 'box-direction',
60
+ 'box-align',
61
+ 'box-pack',
62
+ 'box-lines',
63
+ 'box-ordinal-group',
64
+
65
+ 'order',
66
+
67
+ 'place-content',
68
+ 'align-content',
69
+ 'justify-content',
70
+
71
+ 'place-items',
72
+ 'align-items',
73
+ 'justify-items',
74
+
75
+ 'place-self',
76
+ 'align-self',
77
+ 'justify-self',
78
+
79
+ 'gap',
80
+ 'row-gap',
81
+ 'column-gap',
82
+
83
+ 'columns',
84
+ 'column-count',
85
+ 'column-fill',
86
+ 'column-rule',
87
+ 'column-rule-color',
88
+ 'column-rule-style',
89
+ 'column-rule-width',
90
+ 'column-span',
91
+ 'column-width',
92
+
93
+ 'table-layout',
94
+ 'caption-side',
95
+ 'empty-cells',
96
+
97
+ 'float',
98
+ 'clear',
99
+
100
+ 'shape-outside',
101
+ 'shape-margin',
102
+ 'shape-image-threshold',
103
+
104
+ 'object-fit',
105
+ 'object-position',
106
+ 'object-view-box',
107
+
108
+ 'margin',
109
+ 'margin-top',
110
+ 'margin-right',
111
+ 'margin-bottom',
112
+ 'margin-left',
113
+
114
+ 'margin-inline',
115
+ 'margin-inline-start',
116
+ 'margin-inline-end',
117
+
118
+ 'margin-block',
119
+ 'margin-block-start',
120
+ 'margin-block-end',
121
+
122
+ 'margin-trim',
123
+
124
+ 'padding',
125
+ 'padding-top',
126
+ 'padding-right',
127
+ 'padding-bottom',
128
+ 'padding-left',
129
+
130
+ 'padding-inline',
131
+ 'padding-inline-start',
132
+ 'padding-inline-end',
133
+
134
+ 'padding-block',
135
+ 'padding-block-start',
136
+ 'padding-block-end',
137
+
138
+ 'box-sizing',
139
+ 'aspect-ratio',
140
+
141
+ 'width',
142
+ 'min-width',
143
+ 'max-width',
144
+
145
+ 'inline-size',
146
+ 'min-inline-size',
147
+ 'max-inline-size',
148
+
149
+ 'height',
150
+ 'min-height',
151
+ 'max-height',
152
+
153
+ 'block-size',
154
+ 'min-block-size',
155
+ 'max-block-size',
156
+
157
+ 'contain',
158
+ 'contain-intrinsic-width',
159
+ 'contain-intrinsic-height',
160
+ 'contain-intrinsic-size',
161
+ 'contain-intrinsic-inline-size',
162
+ 'contain-intrinsic-block-size',
163
+
164
+ 'container',
165
+ 'container-name',
166
+ 'container-type',
167
+
168
+ 'overflow',
169
+ 'overflow-x',
170
+ 'overflow-y',
171
+ 'overflow-inline',
172
+ 'overflow-block',
173
+ 'overflow-anchor',
174
+ 'overflow-clip-margin',
175
+ 'overflow-wrap',
176
+
177
+ 'clip',
178
+ 'clip-path',
179
+ 'clip-rule',
180
+
181
+ 'scroll-behavior',
182
+
183
+ 'scroll-margin',
184
+ 'scroll-margin-top',
185
+ 'scroll-margin-right',
186
+ 'scroll-margin-bottom',
187
+ 'scroll-margin-left',
188
+
189
+ 'scroll-margin-inline',
190
+ 'scroll-margin-inline-start',
191
+ 'scroll-margin-inline-end',
192
+ 'scroll-margin-block',
193
+ 'scroll-margin-block-start',
194
+ 'scroll-margin-block-end',
195
+
196
+ 'scroll-marker-group',
197
+
198
+ 'scroll-padding',
199
+ 'scroll-padding-top',
200
+ 'scroll-padding-right',
201
+ 'scroll-padding-bottom',
202
+ 'scroll-padding-left',
203
+
204
+ 'scroll-padding-inline',
205
+ 'scroll-padding-inline-start',
206
+ 'scroll-padding-inline-end',
207
+ 'scroll-padding-block',
208
+ 'scroll-padding-block-start',
209
+ 'scroll-padding-block-end',
210
+
211
+ 'scroll-snap-type',
212
+ 'scroll-snap-align',
213
+ 'scroll-snap-stop',
214
+
215
+ 'scroll-initial-target',
216
+
217
+ 'scroll-timeline',
218
+ 'scroll-timeline-name',
219
+ 'scroll-timeline-axis',
220
+
221
+ 'scrollbar-width',
222
+ 'scrollbar-gutter',
223
+ 'scrollbar-color',
224
+
225
+ 'overscroll-behavior',
226
+ 'overscroll-behavior-x',
227
+ 'overscroll-behavior-y',
228
+ 'overscroll-behavior-inline',
229
+ 'overscroll-behavior-block',
230
+
231
+ 'appearance',
232
+
233
+ 'box-shadow',
234
+
235
+ 'outline',
236
+ 'outline-width',
237
+ 'outline-style',
238
+ 'outline-color',
239
+ 'outline-offset',
240
+
241
+ 'border',
242
+ 'border-width',
243
+ 'border-style',
244
+ 'border-color',
245
+
246
+ 'border-top',
247
+ 'border-top-width',
248
+ 'border-top-style',
249
+ 'border-top-color',
250
+
251
+ 'border-right',
252
+ 'border-right-width',
253
+ 'border-right-style',
254
+ 'border-right-color',
255
+
256
+ 'border-bottom',
257
+ 'border-bottom-width',
258
+ 'border-bottom-style',
259
+ 'border-bottom-color',
260
+
261
+ 'border-left',
262
+ 'border-left-width',
263
+ 'border-left-style',
264
+ 'border-left-color',
265
+
266
+ 'border-inline',
267
+ 'border-inline-width',
268
+ 'border-inline-style',
269
+ 'border-inline-color',
270
+
271
+ 'border-inline-start',
272
+ 'border-inline-start-width',
273
+ 'border-inline-start-style',
274
+ 'border-inline-start-color',
275
+
276
+ 'border-inline-end',
277
+ 'border-inline-end-width',
278
+ 'border-inline-end-style',
279
+ 'border-inline-end-color',
280
+
281
+ 'border-block',
282
+ 'border-block-width',
283
+ 'border-block-style',
284
+ 'border-block-color',
285
+ 'border-block-start',
286
+
287
+ 'border-block-start-width',
288
+ 'border-block-start-style',
289
+ 'border-block-start-color',
290
+
291
+ 'border-block-end',
292
+ 'border-block-end-width',
293
+ 'border-block-end-style',
294
+ 'border-block-end-color',
295
+
296
+ 'border-radius',
297
+
298
+ 'border-top-left-radius',
299
+ 'border-top-right-radius',
300
+ 'border-bottom-right-radius',
301
+ 'border-bottom-left-radius',
302
+
303
+ 'border-start-start-radius',
304
+ 'border-start-end-radius',
305
+ 'border-end-end-radius',
306
+ 'border-end-start-radius',
307
+
308
+ 'border-image',
309
+ 'border-image-source',
310
+ 'border-image-slice',
311
+ 'border-image-width',
312
+ 'border-image-outset',
313
+ 'border-image-repeat',
314
+
315
+ 'border-collapse',
316
+ 'border-spacing',
317
+
318
+ 'box-decoration-break',
319
+
320
+ 'stroke',
321
+ 'stroke-color',
322
+ 'stroke-dasharray',
323
+ 'stroke-dashoffset',
324
+ 'stroke-linecap',
325
+ 'stroke-linejoin',
326
+ 'stroke-miterlimit',
327
+ 'stroke-opacity',
328
+ 'stroke-width',
329
+
330
+ 'paint-order',
331
+ 'vector-effect',
332
+ 'shape-rendering',
333
+
334
+ 'background',
335
+ 'background-color',
336
+ 'background-image',
337
+ 'background-position',
338
+ 'background-position-x',
339
+ 'background-position-y',
340
+ 'background-size',
341
+ 'background-clip',
342
+ 'background-origin',
343
+ 'background-attachment',
344
+ 'background-repeat',
345
+ 'background-blend-mode',
346
+
347
+ 'backface-visibility',
348
+
349
+ 'image-orientation',
350
+ 'image-rendering',
351
+
352
+ 'fill',
353
+ 'fill-opacity',
354
+ 'fill-rule',
355
+
356
+ 'flood-color',
357
+ 'flood-opacity',
358
+
359
+ 'lighting-color',
360
+
361
+ 'stop-color',
362
+ 'stop-opacity',
363
+
364
+ 'accent-color',
365
+
366
+ 'color-adjust',
367
+ 'forced-color-adjust',
368
+ 'print-color-adjust',
369
+
370
+ 'caret-color',
371
+
372
+ 'color',
373
+
374
+ 'color-interpolation',
375
+ 'color-interpolation-filters',
376
+
377
+ 'mask',
378
+
379
+ 'mask-clip',
380
+ 'mask-composite',
381
+ 'mask-image',
382
+ 'mask-mode',
383
+ 'mask-origin',
384
+ 'mask-position',
385
+ 'mask-repeat',
386
+ 'mask-size',
387
+ 'mask-type',
388
+
389
+ 'mask-border',
390
+ 'mask-border-outset',
391
+ 'mask-border-repeat',
392
+ 'mask-border-slice',
393
+ 'mask-border-source',
394
+ 'mask-border-width',
395
+
396
+ 'direction',
397
+ 'writing-mode',
398
+ 'unicode-bidi',
399
+
400
+ 'glyph-orientation-vertical',
401
+
402
+ 'list-style',
403
+ 'list-style-position',
404
+ 'list-style-type',
405
+ 'list-style-image',
406
+
407
+ 'marker',
408
+ 'marker-start',
409
+ 'marker-mid',
410
+ 'marker-end',
411
+
412
+ 'vertical-align',
413
+
414
+ 'alignment-baseline',
415
+ 'baseline-shift',
416
+ 'baseline-source',
417
+ 'dominant-baseline',
418
+
419
+ 'text-align',
420
+ 'text-align-last',
421
+
422
+ 'text-decoration',
423
+ 'text-decoration-color',
424
+ 'text-decoration-line',
425
+ 'text-decoration-skip-ink',
426
+ 'text-decoration-skip',
427
+ 'text-decoration-style',
428
+ 'text-decoration-thickness',
429
+
430
+ 'text-underline-offset',
431
+ 'text-underline-position',
432
+
433
+ 'text-emphasis',
434
+ 'text-emphasis-color',
435
+ 'text-emphasis-style',
436
+ 'text-emphasis-position',
437
+
438
+ 'text-indent',
439
+ 'text-justify',
440
+ 'text-transform',
441
+
442
+ 'text-wrap',
443
+ 'text-wrap-mode',
444
+ 'text-wrap-style',
445
+
446
+ 'text-overflow',
447
+
448
+ 'text-shadow',
449
+ 'text-anchor',
450
+ 'text-box-edge',
451
+ 'text-box-trim',
452
+ 'text-box',
453
+ 'text-combine-upright',
454
+ 'text-orientation',
455
+ 'text-rendering',
456
+ 'text-size-adjust',
457
+ 'text-autospace',
458
+ 'text-spacing-trim',
459
+
460
+ 'ruby-align',
461
+ 'ruby-overhang',
462
+ 'ruby-position',
463
+
464
+ 'letter-spacing',
465
+
466
+ 'white-space',
467
+ 'white-space-collapse',
468
+
469
+ 'word-spacing',
470
+ 'word-break',
471
+
472
+ 'tab-size',
473
+
474
+ 'hyphens',
475
+ 'hyphenate-character',
476
+ 'hyphenate-limit-chars',
477
+ 'hanging-punctuation',
478
+ 'orphans',
479
+ 'widows',
480
+ 'initial-letter',
481
+
482
+ 'line-height',
483
+ 'line-break',
484
+ 'line-clamp',
485
+ 'line-height-step',
486
+
487
+ 'font',
488
+ 'font-weight',
489
+ 'font-size',
490
+ 'font-size-adjust',
491
+ 'font-family',
492
+ 'font-style',
493
+ 'font-stretch',
494
+ 'font-width',
495
+ 'font-synthesis',
496
+ 'font-synthesis-position',
497
+ 'font-synthesis-small-caps',
498
+ 'font-synthesis-style',
499
+ 'font-synthesis-weight',
500
+ 'font-variant',
501
+ 'font-variant-alternates',
502
+ 'font-variant-caps',
503
+ 'font-variant-east-asian',
504
+ 'font-variant-emoji',
505
+ 'font-variant-ligatures',
506
+ 'font-variant-numeric',
507
+ 'font-variant-position',
508
+ 'font-variation-settings',
509
+ 'font-feature-settings',
510
+ 'font-language-override',
511
+ 'font-optical-sizing',
512
+ 'font-palette',
513
+ 'font-kerning',
514
+
515
+ '-webkit-font-smoothing',
516
+ '-moz-osx-font-smoothing',
517
+ 'font-smooth',
518
+
519
+ 'quotes',
520
+
521
+ 'speak',
522
+ 'speak-as',
523
+
524
+ 'counter-set',
525
+ 'counter-increment',
526
+ 'counter-reset',
527
+
528
+ 'transform',
529
+ 'transform-box',
530
+ 'transform-origin',
531
+ 'transform-style',
532
+
533
+ 'translate',
534
+ 'rotate',
535
+ 'scale',
536
+ 'perspective',
537
+ 'perspective-origin',
538
+
539
+ 'transition',
540
+ 'transition-behavior',
541
+ 'transition-delay',
542
+ 'transition-duration',
543
+ 'transition-property',
544
+ 'transition-timing-function',
545
+
546
+ 'animation',
547
+ 'animation-composition',
548
+ 'animation-delay',
549
+ 'animation-direction',
550
+ 'animation-duration',
551
+ 'animation-fill-mode',
552
+ 'animation-iteration-count',
553
+ 'animation-name',
554
+ 'animation-play-state',
555
+ 'animation-range',
556
+ 'animation-range-start',
557
+ 'animation-range-end',
558
+ 'animation-timeline',
559
+ 'animation-timing-function',
560
+
561
+ 'interpolate-size',
562
+
563
+ 'offset',
564
+ 'offset-anchor',
565
+ 'offset-distance',
566
+ 'offset-path',
567
+ 'offset-position',
568
+ 'offset-rotate',
569
+
570
+ 'view-timeline-axis',
571
+ 'view-timeline-inset',
572
+ 'view-timeline-name',
573
+ 'view-timeline',
574
+ 'view-transition-class',
575
+ 'view-transition-name',
576
+
577
+ 'timeline-scope',
578
+
579
+ 'x',
580
+ 'y',
581
+ 'cx',
582
+ 'cy',
583
+ 'r',
584
+ 'rx',
585
+ 'ry',
586
+ 'd',
587
+
588
+ 'math-depth',
589
+ 'math-shift',
590
+ 'math-style',
591
+
592
+ 'color-scheme',
593
+ 'content',
594
+ 'content-visibility',
595
+ 'opacity',
596
+ 'visibility',
597
+ 'overlay',
598
+
599
+ 'filter',
600
+ 'dynamic-range-limit',
601
+ 'backdrop-filter',
602
+ 'mix-blend-mode',
603
+ 'isolation',
604
+
605
+ 'resize',
606
+ 'field-sizing',
607
+
608
+ 'cursor',
609
+ 'pointer-events',
610
+ 'touch-action',
611
+ 'user-select',
612
+ 'user-modify',
613
+
614
+ 'interactivity',
615
+ 'reading-flow',
616
+
617
+ 'zoom',
618
+
619
+ 'break-before',
620
+ 'break-inside',
621
+ 'break-after',
622
+
623
+ 'page-break-before',
624
+ 'page-break-inside',
625
+ 'page-break-after',
626
+
627
+ 'page',
628
+
629
+ 'will-change',
630
+ ];
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "stylelint-config-pepelsbey",
3
+ "version": "1.0.0",
4
+ "description": "My Stylelint config",
5
+ "main": "index.js",
6
+ "type": "module",
7
+ "files": [
8
+ "index.js",
9
+ "order.js"
10
+ ],
11
+ "scripts": {
12
+ "update": "node update.js"
13
+ },
14
+ "keywords": [
15
+ "stylelint",
16
+ "stylelint-config",
17
+ "css",
18
+ "linter"
19
+ ],
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/pepelsbey/stylelint-config-pepelsbey.git"
23
+ },
24
+ "author": "Vadim Makeev",
25
+ "license": "MIT",
26
+ "peerDependencies": {
27
+ "stylelint": "^16.0.0",
28
+ "stylelint-order": "^7.0.0"
29
+ },
30
+ "devDependencies": {
31
+ "@mdn/browser-compat-data": "^5.7.4",
32
+ "stylelint": "^16.0.0",
33
+ "stylelint-order": "^7.0.0"
34
+ }
35
+ }