-
Notifications
You must be signed in to change notification settings - Fork 78
/
.stylelintrc.js
40 lines (37 loc) · 931 Bytes
/
.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
/**
* stylelint 配置
* stylelint: https://stylelint.io/user-guide/rules/list
* stylelint-scss: https://github.com/kristerkari/stylelint-scss
* stylelint-config-rational-order: https://github.com/constverum/stylelint-config-rational-order
*/
module.exports = {
extends: [
'stylelint-config-recommended',
'stylelint-config-rational-order',
'stylelint-config-prettier'
],
plugins: [
'stylelint-scss',
'stylelint-order',
'stylelint-config-rational-order/plugin'
],
rules: {
// 伪元素
'selector-pseudo-element-no-unknown': [
true,
{
ignorePseudoElements: ['v-deep']
}
],
// 通用字体
'font-family-no-missing-generic-family-keyword': [
true,
{
ignoreFontFamilies: ['rt-icon', 'element-icons']
}
],
'no-descending-specificity': null,
'at-rule-no-unknown': null,
'scss/at-rule-no-unknown': true
}
}