-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.js
49 lines (49 loc) · 1.2 KB
/
.stylelintrc.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
/*
* @Author: wangrui
* @Date: 2022-01-19 16:37:18
* @LastEditors: wangrui
* @Description: stylelint 配置
* @LastEditTime: 2022-01-19 16:38:23
*/
module.exports = {
extends: ['stylelint-config-standard-scss'],
root: true,
plugins: ['stylelint-order'],
rules: {
// csss样式书写顺序
'order/order': ['custom-properties', 'declarations'],
'order/properties-order': [
'position',
'top',
'right',
'bottom',
'left',
'overflow',
'margin',
'padding',
'width',
'height',
],
},
ignoreFiles: ['**/*.js', '**/*.jsx', '**/*.tsx', '**/*.ts', '**/*.svg'],
overrides: [
{
extends: ['stylelint-config-recommended-vue/scss', 'stylelint-config-html/vue'],
files: ['*.vue', '**/*.vue'],
rules: {
'selector-pseudo-element-no-unknown': [
true,
{
ignorePseudoElements: ['v-deep'],
},
],
'selector-pseudo-element-no-unknown': [
true,
{
ignorePseudoElements: ['v-deep', 'v-global', 'v-slotted'],
},
],
},
},
],
};