generated from Tim-W-James/react-ts-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.stylelintrc.cjs
63 lines (63 loc) · 1.4 KB
/
.stylelintrc.cjs
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
module.exports = {
extends: [
"stylelint-config-standard-scss",
"stylelint-config-prettier-scss",
"stylelint-config-idiomatic-order",
],
rules: {
"scss/at-rule-no-unknown": [
true,
{
ignoreAtRules: [
"tailwind",
"apply",
"variants",
"responsive",
"screen",
],
},
],
"selector-class-pattern": [
"^_[a-z][a-zA-Z0-9]+$",
{
message:
"Expected class name to be prefixed with '_' and be lowerCamelCase",
},
],
"unit-allowed-list": [
"rem",
"em",
"vh",
"vw",
"vmin",
"vmax",
"px",
"%",
"ms",
"deg",
"ex",
],
"color-named": "always-where-possible",
"color-no-hex": true,
"color-function-notation": "modern",
"length-zero-no-unit": true,
"font-weight-notation": "named-where-possible",
"declaration-no-important": true,
"no-descending-specificity": [
true,
{
ignore: ["selectors-within-list"],
},
],
"alpha-value-notation": ["percentage", { exceptProperties: ["opacity"] }],
"css-modules/no-global-scoped-selector": [
true,
{ fileExtensions: [".module.css", ".module.scss"] },
],
},
plugins: [
"stylelint-order",
"stylelint-css-modules-no-global-scoped-selector",
],
ignoreFiles: ["./dist", "./storybook-static"],
};