-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
54 lines (48 loc) · 1.5 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
module.exports = {
"extends": [
"stylelint-config-standard-scss",
"@stylistic/stylelint-config"
],
"plugins": [
"@stylistic/stylelint-plugin",
"stylelint-no-unsupported-browser-features"
],
// additonal rules based mainly on
// https://github.com/stylelint/stylelint-config-standard#suggested-additions
"rules": {
// plugins
// only emit a warning as partially supported features should be taken care of
// (e.g. vendor prefixed) with postprocessing tools like autoprefixer
// thus the lint process should not error
"plugin/no-unsupported-browser-features": [true, { "severity": "warning" }],
// general
"@stylistic/indentation": null,
"@stylistic/no-missing-end-of-source-newline": null,
// vendor prefixes
// we expect all projects to use autoprefixer
"at-rule-no-vendor-prefix": true,
"media-feature-name-no-vendor-prefix": true,
"property-no-vendor-prefix": true,
"selector-no-vendor-prefix": true,
"value-no-vendor-prefix": true,
// selector specificity and nesting
"selector-max-specificity": "0,3,0",
"selector-max-compound-selectors": 4,
"max-nesting-depth": [
3, {
"ignoreAtRules": [
"include",
"media"
]
}
],
// quotes
"font-family-name-quotes": "always-unless-keyword",
"function-url-quotes": "always",
// declarations
"declaration-no-important": true,
"declaration-property-unit-allowed-list": {
"font-size": ["px", "em"]
}
}
};