-
Notifications
You must be signed in to change notification settings - Fork 2
/
.stylelintrc
122 lines (122 loc) · 3.77 KB
/
.stylelintrc
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
{
"plugins": [
"stylelint-selector-bem-pattern",
"stylelint-declaration-use-variable",
"stylelint-declaration-block-order",
"stylelint-scss"
],
"ignoreFiles": [
"scss/vendor/**/*"
],
"rules": {
"plugin/declaration-block-order": [
{
"type": "at-rule",
"name": "include"
},
{
"type": "at-rule",
"name": "include",
"hasBlock": true
},
{
"type": "at-rule",
"hasBlock": true
},
{
"type": "at-rule"
}
],
"property-no-unknown": true,
"scss/selector-no-redundant-nesting-selector": true,
"scss/at-import-partial-extension-blacklist": ["scss"],
"scss/at-extend-no-missing-placeholder": true,
"scss/at-import-no-partial-leading-underscore": true,
"scss/dollar-variable-pattern": "^[a-z0-9]+((-[a-z0-9]+))*$",
"plugin/selector-bem-pattern": {
"componentName": "(([a-z0-9]+(?!-$)-?)+)",
"componentSelectors": {
"initial": "\\.{componentName}(((__|--)(([a-z0-9\\[\\]'=]+(?!-$)-?)+))+)?$"
},
"ignoreSelectors": [
".*\\.icon*",
".*\\.captioned-image*",
".*\\.image*",
".*\\.is-.*",
".*\\.enhanced.*",
".*\\.lt-ie.*"
]
},
"sh-waqar/declaration-use-variable": [["/color/", "font-size"]],
"declaration-bang-space-before": "always",
"declaration-bang-space-after": "never",
"declaration-property-value-blacklist": {
"/^border/": ["none"]
},
"color-named": "never",
"declaration-block-no-duplicate-properties": true,
"block-no-empty": true,
"no-eol-whitespace": true,
"no-missing-end-of-source-newline": true,
"color-no-invalid-hex": true,
"color-hex-case": "lower",
"selector-max-id": 0,
"declaration-no-important": true,
"number-leading-zero": "always",
"no-duplicate-selectors": true,
"max-nesting-depth": 3,
"selector-no-qualifying-type": true,
"declaration-block-semicolon-newline-after": "always-multi-line",
"selector-list-comma-newline-after": "always",
"function-comma-space-after": "always-single-line",
"declaration-colon-space-after": "always",
"declaration-colon-space-before": "never",
"block-opening-brace-space-before": "always",
"function-parentheses-space-inside": "never",
"string-quotes": "single",
"declaration-block-trailing-semicolon": "always",
"number-no-trailing-zeros": true,
"function-url-quotes": "always",
"property-no-vendor-prefix": true,
"selector-no-vendor-prefix": true,
"media-feature-name-no-vendor-prefix": true,
"at-rule-no-vendor-prefix": true,
"value-no-vendor-prefix": true,
"max-empty-lines": 1,
"indentation": 2,
"length-zero-no-unit": true,
"declaration-block-no-shorthand-property-overrides": true,
"declaration-block-semicolon-space-before": "never",
"block-closing-brace-newline-after": [
"always", {
"ignoreAtRules": [
"if",
"else",
"else if"
]
}
],
"block-opening-brace-newline-after": "always",
"selector-combinator-space-after": "always",
"selector-combinator-space-before": "always",
"selector-pseudo-element-colon-notation": "single",
"selector-list-comma-space-before": "never",
"media-feature-colon-space-after": "always",
"media-feature-colon-space-before": "never",
"media-feature-range-operator-space-after": "always",
"media-feature-range-operator-space-before": "always",
"at-rule-empty-line-before": [
"always", {
"except": [
"blockless-after-blockless",
"first-nested"
],
"ignoreAtRules": ["else"],
"ignore": [
"after-comment"
]
}
],
"shorthand-property-no-redundant-values": true
}
}