Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 20bab6c

Browse files
committed
🔧 Tweak the order of properties
1 parent d64c73c commit 20bab6c

File tree

1 file changed

+37
-29
lines changed

1 file changed

+37
-29
lines changed

rules/order.js

+37-29
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@ module.exports = {
1616
'less-mixins',
1717
],
1818

19+
// specify the alphabetical order of properties within declaration blocks.
20+
'order/properties-alphabetical-order': null,
21+
1922
// specify the almost strict order of properties within declaration blocks
2023
'order/properties-order': [
2124
[
2225
// Content
2326
{
2427
properties: [
2528
'content',
29+
'quotes',
2630
],
2731
},
2832
// Position
@@ -44,6 +48,39 @@ module.exports = {
4448
'visibility',
4549
],
4650
},
51+
// Transform
52+
{
53+
properties: [
54+
'backface-visibility',
55+
56+
'perspective',
57+
'perspective-origin',
58+
59+
'transform',
60+
'transform-origin',
61+
'transform-style',
62+
63+
'transition',
64+
'transition-delay',
65+
'transition-duration',
66+
'transition-property',
67+
'transition-timing-function',
68+
],
69+
},
70+
// Animation
71+
{
72+
properties: [
73+
'animation',
74+
'animation-delay',
75+
'animation-direction',
76+
'animation-duration',
77+
'animation-fill-mode',
78+
'animation-iteration-count',
79+
'animation-name',
80+
'animation-play-state',
81+
'animation-timing-function',
82+
],
83+
},
4784
// Layout
4885
{
4986
properties: [
@@ -256,35 +293,6 @@ module.exports = {
256293
'word-wrap',
257294
],
258295
},
259-
// Transform
260-
{
261-
properties: [
262-
'transition',
263-
'transition-delay',
264-
'transition-duration',
265-
'transition-property',
266-
'transition-timing-function',
267-
268-
'transform',
269-
'transform-origin',
270-
'transform-style',
271-
272-
'perspective',
273-
'perspective-origin',
274-
275-
'backface-visibility',
276-
277-
'animation',
278-
'animation-delay',
279-
'animation-direction',
280-
'animation-duration',
281-
'animation-fill-mode',
282-
'animation-iteration-count',
283-
'animation-name',
284-
'animation-play-state',
285-
'animation-timing-function',
286-
],
287-
},
288296
], {
289297
unspecified: 'bottomAlphabetical',
290298
},

0 commit comments

Comments
 (0)