-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
68 lines (68 loc) · 1.46 KB
/
index.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
module.exports = {
extends: 'stylelint-config-standard',
rules: {
indentation: 'tab',
'at-rule-no-vendor-prefix': true,
'declaration-no-important': true,
'declaration-property-value-blacklist': [
{
'/^background/': [
'http:',
'https:',
],
'/^border/': [
'none',
],
'/^transition/': [
'/all/',
],
},
{
message: 'Transitioning all properties, absolute background URLs and `border: none` are '
+ 'black-listed (declaration-property-value-blacklist)',
},
],
'font-family-name-quotes': 'always-where-recommended',
'function-url-quotes': 'never',
'max-line-length': 120,
'max-nesting-depth': [
2, {
ignore: ['blockless-at-rules'],
},
],
'media-feature-name-no-vendor-prefix': true,
'property-no-vendor-prefix': true,
'selector-attribute-quotes': 'always',
'selector-max-compound-selectors': 3,
'selector-max-id': 0,
'selector-max-specificity': '0,4,0',
'selector-max-universal': 0,
'selector-nested-pattern': [
'^&:',
{
message: 'Only pseudo-classes and pseudo-elements can be nested (selector-nested-pattern)',
},
],
'selector-no-qualifying-type': true,
'selector-no-vendor-prefix': true,
'value-no-vendor-prefix': true,
'at-rule-no-unknown': [
true,
{
ignoreAtRules: [
'content',
'each',
'else',
'else if',
'error',
'for',
'function',
'if',
'include',
'mixin',
'return',
],
},
],
},
};