-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.js
57 lines (57 loc) · 1.27 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
50
51
52
53
54
55
56
57
module.exports = {
root: true,
extends: [
'stylelint-config-standard',
// 'stylelint-config-recess-order'
],
plugins: [
'stylelint-scss',
],
rules: {
// 规则前空行
'rule-empty-line-before': null, // 'always'|'never'|'always-multi-line'|'never-multi-line'
// 命名颜色值
'color-named': 'never', // 'always-where-possible'|'never'
// 颜色大小写
'color-hex-case': null, // 'lower'|'upper'
'unit-no-unknown': [true, {
ignoreUnits: ['rpx'],
}],
'at-rule-no-unknown': [true, {
'ignoreAtRules': [
'each',
'for',
'if',
'else',
'while',
'extend',
'function',
'return',
'include',
'mixin',
'use',
'forward',
'at-root',
'warn',
'error',
'debug',
],
}],
'property-no-unknown': [true, {
ignoreProperties: ['system', 'symbols'],
}],
'at-rule-empty-line-before': ['always', {
except: [
'blockless-after-same-name-blockless',
'first-nested',
],
ignore: ['after-comment'],
ignoreAtRules: ['else'],
}],
'block-closing-brace-newline-after': [
'always', {
'ignoreAtRules': ['if', 'else'],
},
],
},
}