-
Notifications
You must be signed in to change notification settings - Fork 0
/
stylelint.config.js
51 lines (51 loc) · 1.24 KB
/
stylelint.config.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
module.exports = {
processors: ['stylelint-processor-styled-components'],
extends: [
'stylelint-config-standard',
'stylelint-config-styled-components',
'stylelint-config-prettier'
],
rules: {
'at-rule-no-vendor-prefix': true,
'at-rule-no-unknown': [
true,
{
ignoreAtRules: ['include', 'mixin', 'extend', 'for', 'content', 'each']
}
],
'color-named': 'never',
'declaration-property-value-blacklist': {
'/^background/': ['/http:/'],
'/^border$/': ['none'],
'/.+/': ['initial']
},
'font-family-name-quotes': 'always-unless-keyword',
'function-url-quotes': 'always',
'media-feature-name-no-vendor-prefix': true,
'rule-empty-line-before': [
'always-multi-line',
{
except: ['first-nested'],
ignore: ['after-comment']
}
],
'property-no-vendor-prefix': true,
'selector-max-id': 0,
'selector-no-vendor-prefix': true,
'selector-type-no-unknown': [
true,
{
ignore: 'default-namespace'
}
],
'string-quotes': 'single',
'unit-blacklist': [
['em', 'rem'],
{
severity: 'warning'
}
],
'value-no-vendor-prefix': true,
'no-duplicate-selectors': true
}
};