forked from poolpOrg/hypno.cat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stylelint.config.js
36 lines (31 loc) · 1009 Bytes
/
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
/* eslint-disable */
// Using stylelint + stylelint-scss
// rules based on stylelint-config-sass-guidelines
//
// https://medium.com/@bjankord/how-to-lint-scss-with-stylelint-dc87809a9878
//
// https://github.com/stylelint/stylelint
// https://github.com/kristerkari/stylelint-scss
// https://github.com/bjankord/stylelint-config-sass-guidelines
module.exports = {
"extends": "stylelint-config-sass-guidelines",
"plugins": [
"stylelint-scss"
],
"rules": {
"indentation": 4, // same indentation as source code: one size fits all
"max-nesting-depth": [
2,
{
ignore: ["blockless-at-rules"]
}
],
// to hell with lowercase only selectors !
"selector-class-pattern": "^[a-zA-Z0-9\\-]+$",
"selector-list-comma-newline-after": "always-multi-line",
"selector-max-compound-selectors": 5,
"selector-max-id": 1,
"string-quotes": "double",
}
};
/* eslint-enable */