This repository has been archived by the owner on Dec 30, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
stylelint.config.js
65 lines (58 loc) · 1.85 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
module.exports = {
extends: ["stylelint-config-standard"],
plugins: [
// Plugin with a specialized bunch of rules specifically for SCSS.
"stylelint-scss"
],
rules: {
// Disabled, since it conflicts with SCSS/SASS stuff like `@include`.
"at-rule-no-unknown": null,
// The corresponding rule for SCSS.
"scss/at-rule-no-unknown": true,
// Personal style decision about how hex-colors should be formatted.
"color-hex-case": "upper",
"color-hex-length": "long",
/*
Function calls should be lowercase regularly. However, there are some
browser-specific functions that might be case sensitive, so they
should be ignored.
*/
"function-name-case": [
"lower",
{
ignoreFunctions: [
"Alpha",
"progid:DXImageTransform.Microsoft.BasicImage",
"DXImageTransform.Microsoft.BasicImage"
]
}
],
// Enforcing a newline at the end of a file could not be less important.
"no-missing-end-of-source-newline": null,
/*
There are quite a lot of cases where its perfectly suitable to use
multiple selectors in the same row. Thus, adding a newline after the
separating `,` should only be required in case of multiline declarations.
*/
"selector-list-comma-newline-after": "always-multi-line",
// Opinionated list of allowed units.
"unit-whitelist": ["vh", "em", "rem", "%", "s", "px", "deg", "fr"],
/*
Ignore some non-standard properties that got added for specific browsers
supporting them.
*/
"property-no-unknown": [
true,
{
ignoreProperties: ["font-smooth", "local"]
}
],
// Extended rule to ignore custom elements (e.g. angular or web components).
"selector-type-no-unknown": [
true,
{
ignore: ["default-namespace"]
}
]
}
};