Vben
2021-03-04 553467df566b53c0a4c1c5432ca3651ab319d706
提交 | 用户 | age
2f6253 1 module.exports = {
2   root: true,
3   plugins: ['stylelint-order'],
4   extends: ['stylelint-config-standard', 'stylelint-config-prettier'],
5   rules: {
6     'selector-pseudo-class-no-unknown': [
7       true,
8       {
9         ignorePseudoClasses: ['global'],
10       },
11     ],
12     'at-rule-no-unknown': [
13       true,
14       {
15         ignoreAtRules: ['function', 'if', 'each', 'include', 'mixin'],
16       },
17     ],
18     'no-empty-source': null,
19     'unicode-bom': 'never',
20     'no-descending-specificity': null,
21     'font-family-no-missing-generic-family-keyword': null,
22     'declaration-colon-space-after': 'always-single-line',
23     'declaration-colon-space-before': 'never',
24     'declaration-block-trailing-semicolon': 'always',
25     'rule-empty-line-before': [
26       'always',
27       {
28         ignore: ['after-comment', 'first-nested'],
29       },
30     ],
8a9ca4 31     'unit-no-unknown': [true, { ignoreUnits: ['rpx'] }],
07c18d 32     // Specify the alphabetical order of the attributes in the declaration block
2f6253 33     'order/properties-order': [
34       'position',
35       'top',
36       'right',
37       'bottom',
38       'left',
39       'z-index',
40       'display',
41       'float',
42       'width',
43       'height',
44       'max-width',
45       'max-height',
46       'min-width',
47       'min-height',
48       'padding',
49       'padding-top',
50       'padding-right',
51       'padding-bottom',
52       'padding-left',
53       'margin',
54       'margin-top',
55       'margin-right',
56       'margin-bottom',
57       'margin-left',
58       'margin-collapse',
59       'margin-top-collapse',
60       'margin-right-collapse',
61       'margin-bottom-collapse',
62       'margin-left-collapse',
63       'overflow',
64       'overflow-x',
65       'overflow-y',
66       'clip',
67       'clear',
68       'font',
69       'font-family',
70       'font-size',
71       'font-smoothing',
72       'osx-font-smoothing',
73       'font-style',
74       'font-weight',
75       'hyphens',
76       'src',
77       'line-height',
78       'letter-spacing',
79       'word-spacing',
80       'color',
81       'text-align',
82       'text-decoration',
83       'text-indent',
84       'text-overflow',
85       'text-rendering',
86       'text-size-adjust',
87       'text-shadow',
88       'text-transform',
89       'word-break',
90       'word-wrap',
91       'white-space',
92       'vertical-align',
93       'list-style',
94       'list-style-type',
95       'list-style-position',
96       'list-style-image',
97       'pointer-events',
98       'cursor',
99       'background',
100       'background-attachment',
101       'background-color',
102       'background-image',
103       'background-position',
104       'background-repeat',
105       'background-size',
106       'border',
107       'border-collapse',
108       'border-top',
109       'border-right',
110       'border-bottom',
111       'border-left',
112       'border-color',
113       'border-image',
114       'border-top-color',
115       'border-right-color',
116       'border-bottom-color',
117       'border-left-color',
118       'border-spacing',
119       'border-style',
120       'border-top-style',
121       'border-right-style',
122       'border-bottom-style',
123       'border-left-style',
124       'border-width',
125       'border-top-width',
126       'border-right-width',
127       'border-bottom-width',
128       'border-left-width',
129       'border-radius',
130       'border-top-right-radius',
131       'border-bottom-right-radius',
132       'border-bottom-left-radius',
133       'border-top-left-radius',
134       'border-radius-topright',
135       'border-radius-bottomright',
136       'border-radius-bottomleft',
137       'border-radius-topleft',
138       'content',
139       'quotes',
140       'outline',
141       'outline-offset',
142       'opacity',
143       'filter',
144       'visibility',
145       'size',
146       'zoom',
147       'transform',
148       'box-align',
149       'box-flex',
150       'box-orient',
151       'box-pack',
152       'box-shadow',
153       'box-sizing',
154       'table-layout',
155       'animation',
156       'animation-delay',
157       'animation-duration',
158       'animation-iteration-count',
159       'animation-name',
160       'animation-play-state',
161       'animation-timing-function',
162       'animation-fill-mode',
163       'transition',
164       'transition-delay',
165       'transition-duration',
166       'transition-property',
167       'transition-timing-function',
168       'background-clip',
169       'backface-visibility',
170       'resize',
171       'appearance',
172       'user-select',
173       'interpolation-mode',
174       'direction',
175       'marks',
176       'page',
177       'set-link-source',
178       'unicode-bidi',
179       'speak',
180     ],
181   },
8a9ca4 182   ignoreFiles: ['**/*.js', '**/*.jsx', '**/*.tsx', '**/*.ts'],
2f6253 183 };