Skip to content

Commit 3ef4bf1

Browse files
committed
Feat(stylelint): Add more properties to check their order
- `accent-color` - `backdrop-filter` - `backface-visibility` - `background-blend-mode` - `border-spacing` - `box-decoration-break` - `caret-color` - `color-scheme`, `color-interpolation` - `column-fill`, `column-span` - `contain` (including all long-hand variants) - `container` (including all long-hand variants) - `counter-set` - `direction` - `empty-cells` - `font-size-adjust`, `font-variant-*`, `font-feature-settings`, `font-stretch`, `font-synthesis` (including all long-hand variants), `font-kerning`, `font-optical-sizing`, `font-palette` - `image-orientation`, `image-rendering` - `inset` (including all long-hand variants), - `justify-items` - `list-style-image` - `mask` (including all long-hand variants), `mask-border` (including all long-hand variants), `mask-type` - `mix-blend-mode` - `outline-*` - `overflow-anchor` - `overscroll-behavior` (including all long-hand variants). - `paint-order`, - `perspective`, `perspective-origin` - `place-content`, `place-items`, `place-self` - `quotes` - `scrollbar-*` - `table-layout` - `text-align-last`, `text-indent`, `text-decoration-skip-ink`, `text-underline-*`, `text-rendering`, `text-wrap` (including all long-hand variants) - `touch-action`, - `transform-box`, `transform-style`, individual transforms: `translate`, `rotate`, `scale`, - `transition-behavior` - `white-space-collapse` - `word-spacing` The key is roughly like this: all properties from MDN that are standard, widely supported, non-experimental, not specific for non-western languages, and not designed for paged media. https://developer.mozilla.org/en-US/docs/Web/CSS
1 parent 17e4fc8 commit 3ef4bf1

File tree

1 file changed

+110
-4
lines changed

1 file changed

+110
-4
lines changed

packages/stylelint-config/rules/order.js

Lines changed: 110 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,34 @@ export default {
1010

1111
// Position
1212
'position',
13+
'inset',
14+
'inset-inline',
15+
'inset-inline-start',
16+
'inset-inline-end',
17+
'inset-block',
18+
'inset-block-start',
19+
'inset-block-end',
1320
'top',
1421
'right',
1522
'bottom',
1623
'left',
17-
'z-index',
24+
'contain',
25+
'contain-intrinsic-size',
26+
'contain-intrinsic-inline-size',
27+
'contain-intrinsic-width',
28+
'contain-intrinsic-block-size',
29+
'contain-intrinsic-height',
1830
'isolation',
31+
'z-index',
1932

2033
// General appearance
2134
'appearance',
2235

2336
// Box model
37+
'direction',
38+
'container',
39+
'container-name',
40+
'container-type',
2441
'display',
2542
'flex',
2643
'flex-grow',
@@ -49,6 +66,8 @@ export default {
4966
'grid-row-gap',
5067
'columns',
5168
'column-count',
69+
'column-fill',
70+
'column-span',
5271
'column-width',
5372
'column-rule',
5473
'column-rule-width',
@@ -57,13 +76,18 @@ export default {
5776
'gap',
5877
'column-gap',
5978
'row-gap',
79+
'place-self',
80+
'place-content',
81+
'place-items',
6082
'align-self',
6183
'align-content',
6284
'align-items',
6385
'justify-self',
6486
'justify-content',
6587
'justify-items',
6688
'order',
89+
'table-layout',
90+
'empty-cells',
6791
'shape-outside',
6892
'shape-image-threshold',
6993
'shape-margin',
@@ -110,48 +134,82 @@ export default {
110134
'margin-left',
111135
'overflow',
112136
'overflow-inline',
113-
'overflow-block',
114137
'overflow-x',
138+
'overflow-block',
115139
'overflow-y',
140+
'overflow-anchor',
116141

117142
// Typography
118143
'font',
119144
'font-style',
120145
'font-weight',
121146
'font-size',
147+
'font-size-adjust',
122148
'line-height',
123149
'font-family',
124150
'font-variant',
151+
'font-variant-alternates',
152+
'font-variant-caps',
153+
'font-variant-east-asian',
154+
'font-variant-emoji',
155+
'font-variant-ligatures',
156+
'font-variant-numeric',
157+
'font-variant-position',
158+
'font-feature-settings',
159+
'font-stretch',
160+
'font-synthesis',
161+
'font-synthesis-weight',
162+
'font-synthesis-style',
163+
'font-synthesis-small-caps',
164+
'font-synthesis-position',
165+
'font-kerning',
166+
'font-optical-sizing',
167+
'font-palette',
125168
'font-display',
126169
'src',
127170
'letter-spacing',
171+
'quotes',
128172
'text-align',
173+
'text-align-last',
174+
'text-indent',
129175
'text-decoration',
130176
'text-decoration-color',
131177
'text-decoration-line',
132178
'text-decoration-style',
133179
'text-decoration-thickness',
180+
'text-decoration-skip-ink',
181+
'text-underline-offset',
182+
'text-underline-position',
134183
'text-overflow',
135184
'text-shadow',
185+
'text-rendering',
136186
'text-size-adjust',
137187
'text-transform',
188+
'text-wrap',
189+
'text-wrap-mode',
190+
'text-wrap-style',
138191
'writing-mode',
139192
'white-space',
193+
'white-space-collapse',
140194
'word-break',
195+
'word-spacing',
141196
'overflow-wrap',
142197
'hyphens',
143198
'vertical-align',
144199
'list-style',
200+
'list-style-image',
145201
'list-style-position',
146202
'list-style-type',
147203
'counter-increment',
148204
'counter-reset',
205+
'counter-set',
149206

150207
// Decorations
208+
'color-scheme',
151209
'color',
210+
'color-interpolation',
211+
'accent-color',
152212
'border',
153-
'border-inline',
154-
'border-block',
155213
'border-width',
156214
'border-style',
157215
'border-color',
@@ -211,6 +269,7 @@ export default {
211269
'border-bottom-right-radius',
212270
'border-bottom-left-radius',
213271
'border-collapse',
272+
'border-spacing',
214273
'background',
215274
'background-image',
216275
'background-position',
@@ -222,22 +281,59 @@ export default {
222281
'background-origin',
223282
'background-clip',
224283
'background-color',
284+
'background-blend-mode',
285+
'paint-order',
225286
'stroke',
226287
'fill',
227288
'outline',
289+
'outline-color',
290+
'outline-style',
291+
'outline-width',
292+
'outline-offset',
293+
'box-decoration-break',
228294
'box-shadow',
229295

230296
// Effects and transforms
231297
'visibility',
232298
'opacity',
299+
'mix-blend-mode',
233300
'filter',
301+
'backdrop-filter',
302+
'mask',
303+
'mask-clip',
304+
'mask-composite',
305+
'mask-image',
306+
'mask-mode',
307+
'mask-origin',
308+
'mask-position',
309+
'mask-repeat',
310+
'mask-size',
311+
'mark-border',
312+
'mask-border-mode',
313+
'mask-border-outset',
314+
'mask-border-repeat',
315+
'mask-border-slice',
316+
'mask-border-source',
317+
'mask-border-width',
318+
'mask-type',
319+
'translate',
320+
'rotate',
321+
'scale',
322+
'perspective',
323+
'perspective-origin',
234324
'transform',
325+
'transform-box',
235326
'transform-origin',
327+
'transform-style',
328+
'backface-visibility',
329+
'image-orientation',
330+
'image-rendering',
236331

237332
// Interactions
238333
'user-select',
239334
'pointer-events',
240335
'resize',
336+
'touch-action',
241337
'scroll-behavior',
242338
'scroll-snap-type',
243339
'scroll-padding',
@@ -264,14 +360,24 @@ export default {
264360
'scroll-margin-bottom',
265361
'scroll-margin-left',
266362
'scroll-snap-stop',
363+
'overscroll-behavior',
364+
'overscroll-behavior-inline',
365+
'overscroll-behavior-block',
366+
'overscroll-behavior-x',
367+
'overscroll-behavior-y',
368+
'caret-color',
267369
'cursor',
370+
'scrollbar-color',
371+
'scrollbar-gutter',
372+
'scrollbar-width',
268373

269374
// Transitions and animations
270375
'transition',
271376
'transition-property',
272377
'transition-duration',
273378
'transition-timing-function',
274379
'transition-delay',
380+
'transition-behavior',
275381
'animation',
276382
'animation-name',
277383
'animation-duration',

0 commit comments

Comments
 (0)