-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.stylelintrc.js
50 lines (50 loc) · 1015 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
41
42
43
44
45
46
47
48
49
50
module.exports = {
extends: [
'stylelint-config-standard',
'stylelint-config-standard-scss',
'stylelint-config-recommended-vue'
],
plugins: ['stylelint-order'],
rules: {
indentation: 'tab',
// 禁止使用可以缩写却不缩写的属性
'declaration-block-no-redundant-longhand-properties': true,
'at-rule-no-unknown': [
true,
{
ignoreAtRules: [
'extend',
'at-root',
'debug',
'warn',
'error',
'if',
'else',
'for',
'each',
'while',
'mixin',
'include',
'content',
'return',
'function',
],
},
],
'selector-pseudo-element-no-unknown': [
true,
{
ignorePseudoElements: ['deep'],
},
],
'no-descending-specificity': null,
'selector-class-pattern': [
'^([a-z][a-z0-9]*)(-[a-z0-9]+)*?((--|__)[a-z0-9]+)*?(-[a-z0-9]+)*?$',
{
message: selector => `"${selector}" to be bem`,
},
],
'no-duplicate-selectors': null,
'font-family-no-missing-generic-family-keyword': null,
},
}