-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstylelint.config.js
56 lines (56 loc) · 2.28 KB
/
stylelint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
module.exports = {
plugins: ['stylelint-order', 'stylelint-scss'],
rules: {
'order/properties-order': [
{
emptyLineBefore: 'always',
properties: ['z-index', 'order', 'opacity', 'visibility'],
},
{
groupName: 'layout',
emptyLineBefore: 'always',
properties: ['display', 'position', 'top', 'right', 'bottom', 'left'],
},
{
groupName: 'flexbox',
emptyLineBefore: 'always',
properties: ['justify-content', 'align-items', 'align-content', 'flex-wrap'],
},
{
groupName: 'dimensions',
emptyLineBefore: 'always',
properties: ['width', 'min-width', 'max-width', 'height', 'min-height', 'max-height', 'overflow', 'overflow-x', 'overflow-y'],
},
{
groupName: 'spacing',
emptyLineBefore: 'always',
properties: ['margin', 'margin-top', 'margin-right', 'margin-bottom', 'margin-left', 'padding', 'padding-top', 'padding-right', 'padding-bottom', 'padding-left'],
},
{
groupName: 'typography',
emptyLineBefore: 'always',
properties: ['font-family', 'src', 'font-weight', 'font-size', 'line-height', 'letter-spacing', 'color', 'text-align', 'text-transform', 'text-decoration', 'vertical-align', 'white-space'],
},
{
groupName: 'visual',
emptyLineBefore: 'always',
properties: ['background', 'background-color', 'border', 'border-top', 'border-right', 'border-bottom', 'border-left', 'border-radius', 'box-shadow', 'outline'],
},
{
groupName: 'transform',
emptyLineBefore: 'always',
properties: ['transform', 'transform-origin'],
},
{
groupName: 'animations',
emptyLineBefore: 'always',
properties: ['transition'],
},
{
groupName: 'misc',
emptyLineBefore: 'always',
properties: ['cursor', 'pointer-events'],
},
],
},
};