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