-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.stylelintrc.js
131 lines (131 loc) · 3.67 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
module.exports = {
'extends': [
'stylelint-config-recommended-scss',
'stylelint-config-sass-guidelines',
'stylelint-config-standard',
],
'plugins': [
'stylelint-scss'
],
// Ignore anything that isn't one of these file types
'ignoreFiles': ['**/!(*.{css,scss,sass})'],
'rules': {
// Line Spacing
'rule-empty-line-before': [
'always-multi-line',
{
'ignore': [
'after-comment',
'first-nested',
'inside-block'
]
}
],
// Selector rules
'selector-no-qualifying-type': [
true,
{
'ignore': [
'attribute',
'class'
]
}
],
'selector-max-id': 2,
'selector-max-compound-selectors': 6,
'selector-pseudo-element-colon-notation': 'single',
'no-descending-specificity': [
true,
{
'ignore': [
'selectors-within-list'
]
}
],
'max-nesting-depth': [
4,
{
'ignore': [
'blockless-at-rules',
'pseudo-classes'
]
}
],
// Color rules
'color-function-notation': 'legacy',
'alpha-value-notation': 'number',
'number-max-precision': 5,
'color-named': [
'never',
{
'ignore': [
'inside-function'
]
}
],
// Common rules
'function-url-quotes': 'always',
'import-notation': 'string',
'annotation-no-unknown': [
true,
{
'ignoreAnnotations': [
'default'
]
}
],
'at-rule-no-unknown': [
true,
{
// Allow sass at-rules - see https://sass-lang.com/documentation/at-rules/
'ignoreAtRules': [
'at-root',
'debug',
'each',
'else',
'error',
'extend',
'for',
'forward',
'function',
'if',
'import',
'include',
'mixin',
'return',
'use',
'warn',
'while',
]
}
],
'comment-no-empty': true,
'declaration-block-no-duplicate-properties': true,
'no-irregular-whitespace': true,
'block-no-empty': [
true,
{
'ignore': [
'comments'
]
}
],
'font-family-name-quotes': 'always-unless-keyword',
// Turn off rules
'selector-class-pattern': null,
'selector-id-pattern': null,
'function-no-unknown': null,
'property-no-vendor-prefix': null,
'value-no-vendor-prefix': null,
'font-family-no-missing-generic-family-keyword': null,
'scss/dollar-variable-colon-space-after': null,
'scss/no-global-function-names': null,
'value-keyword-case': null,
'media-query-no-invalid': null,
'selector-id-pattern': null,
'keyframes-name-pattern': null,
'scss/dollar-variable-pattern': null,
'scss/at-extend-no-missing-placeholder': null,
'no-descending-specificity': null,
}
};