-
Notifications
You must be signed in to change notification settings - Fork 4
/
.stylelintrc.js
30 lines (29 loc) · 984 Bytes
/
.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
module.exports = {
extends: ["stylelint-config-standard", "stylelint-config-prettier"],
rules: {
// Only allow multi-line declarations.
// Allowed:
// .foobar {
// text-decoration: underline;
// }
// Not allowed:
// .foobar { text-decoration: underline; }
"declaration-block-single-line-max-declarations": 0,
// TODO
// All classes defined should be prefixed by the name of that file.
// Allowed in Navigation.css:
// .Navigation {
// text-decoration: underline;
// }
// .Navigation-foobar {
// text-decoration: underline;
// }
// Not allowed in Navigation.css:
// .foobar {
// text-decoration: underline;
// }
// Can't be done without lots of hacking currently. Could be possible in the future
// via `.overrides`, see https://github.com/stylelint/stylelint/issues/3128.
// 'selector-class-pattern': /foo/
},
};