-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.stylelintrc.js
38 lines (37 loc) · 1.26 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
export default {
extends: [
"stylelint-config-standard-scss",
"stylelint-config-idiomatic-order",
],
rules: {
"string-no-newline": true,
"block-no-empty": true,
"comment-no-empty": true,
"alpha-value-notation": "number",
"at-rule-no-unknown": null,
"no-descending-specificity": null,
"no-empty-source": null,
"rule-empty-line-before": [
"always-multi-line",
{
except: ["first-nested"],
},
],
"scss/at-import-no-partial-leading-underscore": null,
"scss/at-mixin-pattern": null,
"scss/load-no-partial-leading-underscore": null,
"font-family-name-quotes": "always-unless-keyword",
"selector-no-vendor-prefix": [true, { ignoreSelectors: ["::-webkit-input-placeholder"] }],
"property-no-vendor-prefix": [true, { ignoreProperties: ["appearance", "mask-composite"] }],
"selector-pseudo-class-no-unknown": [
true,
{
ignorePseudoClasses: ["deep"],
},
],
"selector-class-pattern": ["^[a-z]([a-z0-9-]+)?(__([a-z0-9]+-?)+)?(--([a-z0-9]+-?)+){0,2}$", {
message: selector => `Expected class selector "${selector}" to be in BEM format`,
}],
"scss/at-function-pattern": "^([a-z][a-z0-9]*)([a-z0-9_-]+)*$",
},
};