-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.stylelintrc.js
48 lines (48 loc) · 1.33 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
module.exports = {
plugins: ["stylelint-declaration-strict-value"],
extends: ["stylelint-config-standard", "stylelint-config-recommended-scss"],
rules: {
"declaration-empty-line-before": null,
"declaration-colon-newline-after": null,
"declaration-no-important": true,
"max-nesting-depth": 3,
"scale-unlimited/declaration-strict-value": [
"/color/",
{
disableFix: true,
ignoreValues: [
"currentcolor",
"inherit",
"initial",
"transparent",
"unset",
],
},
],
"scss/at-function-pattern": [
"^[a-z0-9]+(-[a-z0-9]+)*$",
{
message: "SCSS functions should be lower-case with hyphens",
},
],
"scss/at-mixin-pattern": [
"^[a-z0-9]+(-[a-z0-9]+)*$",
{
message: "SCSS mixins should be lower-case with hyphens",
},
],
"scss/dollar-variable-pattern": [
"^[a-z0-9]+(-[a-z0-9]+)*$",
{
message: "SCSS $ variables should be lower-case with hyphens",
},
],
"scss/no-duplicate-dollar-variables": true,
"scss/selector-no-redundant-nesting-selector": null,
"selector-max-compound-selectors": 3,
"selector-max-id": 0,
"selector-no-qualifying-type": true,
"string-quotes": "double",
"value-list-comma-newline-after": null,
},
};