-
Notifications
You must be signed in to change notification settings - Fork 11
/
.stylelintrc.cjs
71 lines (67 loc) · 1.85 KB
/
.stylelintrc.cjs
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
module.exports = {
'extends': [
'stylelint-config-standard',
'stylelint-config-standard-scss',
'stylelint-config-recommended-vue',
'stylelint-config-recommended-vue/scss'
],
'plugins': ['@stylistic/stylelint-plugin'],
'ignoreFiles': ['**/*.js', '**/*.ts'],
'defaultSeverity': 'error',
'rules': {
'unit-disallowed-list': [
'rem',
'pt'
],
'@stylistic/indentation': [
2,
{
'baseIndentLevel': 0
}
],
'no-empty-source': null,
'block-no-empty': null,
'declaration-block-no-duplicate-custom-properties': null,
'font-family-no-missing-generic-family-keyword': null,
'selector-class-pattern': '^[a-z]([a-z0-9-]+)?(__([a-z0-9]+-?)+)?(__([a-z0-9]+-?)+)?(--([a-z0-9]+-?)+){0,2}$|^Mui.*$|^([a-z][a-z0-9]*)(_[a-z0-9]+)*$',
'scss/at-mixin-pattern': '^[a-z]([a-z0-9-]+)?(__([a-z0-9]+-?)+)?(__([a-z0-9]+-?)+)?(--([a-z0-9]+-?)+){0,2}$|^Mui.*$|^([a-z][a-z0-9]*)(_[a-z0-9]+)*$',
'scss/double-slash-comment-whitespace-inside': 'always',
'scss/dollar-variable-pattern': null,
'selector-pseudo-class-no-unknown': [
true,
{
'ignorePseudoClasses': [
'export',
'deep'
]
}
],
'property-no-unknown': null,
'at-rule-empty-line-before': [
'always',
{
'except': ['first-nested', 'blockless-after-same-name-blockless']
}
],
'custom-property-empty-line-before': [
'always',
{
'except': ['after-custom-property', 'first-nested']
}
],
'declaration-empty-line-before': [
'always',
{
'except': ['after-declaration', 'first-nested']
}
],
'rule-empty-line-before': ['always-multi-line'],
// 忽视 -webkit-xxxx 等兼容写法
'property-no-vendor-prefix': [
true,
{
ignoreProperties: ['box-shadow']
}
]
}
}