aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/stylelintrc.json
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/stylelintrc.json')
-rw-r--r--scripts/stylelintrc.json130
1 files changed, 130 insertions, 0 deletions
diff --git a/scripts/stylelintrc.json b/scripts/stylelintrc.json
new file mode 100644
index 0000000..6e8978b
--- /dev/null
+++ b/scripts/stylelintrc.json
@@ -0,0 +1,130 @@
1{
2 "extends": [
3 "stylelint-config-standard"
4 ],
5 "plugins": [
6 "stylelint-order"
7 ],
8 "rules": {
9 "at-rule-no-vendor-prefix": true,
10 "color-hex-length": "short",
11 "color-named": "always-where-possible",
12 "comment-whitespace-inside": "always",
13 "custom-property-empty-line-before": "never",
14 "declaration-block-single-line-max-declarations": 1,
15 "declaration-empty-line-before": null,
16 "font-family-name-quotes": "always-where-required",
17 "no-duplicate-selectors": true,
18 "property-no-vendor-prefix": true,
19 "selector-attribute-quotes": "always",
20 "selector-class-pattern": null,
21 "selector-no-vendor-prefix": true,
22 "value-no-vendor-prefix": true,
23 "order/order": [
24 "custom-properties",
25 "dollar-variables",
26 "declarations",
27 "rules",
28 "at-rules"
29 ],
30 "order/properties-order": [
31 {
32 "groupName": "Display & Box Model",
33 "emptyLineBefore": "always",
34 "noEmptyLineBetween": true,
35 "properties": [
36 "content",
37 "display",
38 "box-sizing",
39 "overflow",
40 "flex",
41 "flex-direction",
42 "justify-content",
43 "align-items",
44 "width",
45 "min-width",
46 "max-width",
47 "height",
48 "min-height",
49 "max-height",
50 "margin",
51 "margin-top",
52 "margin-right",
53 "margin-bottom",
54 "margin-left",
55 "padding",
56 "padding-block",
57 "padding-inline",
58 "padding-top",
59 "padding-right",
60 "padding-bottom",
61 "padding-left"
62 ]
63 },
64 {
65 "groupName": "Positioning",
66 "emptyLineBefore": "always",
67 "noEmptyLineBetween": true,
68 "properties": [
69 "position",
70 "left",
71 "top",
72 "right",
73 "bottom",
74 "z-index"
75 ]
76 },
77 {
78 "groupName": "Border",
79 "emptyLineBefore": "always",
80 "noEmptyLineBetween": true,
81 "properties": [
82 "border",
83 "border-top",
84 "border-right",
85 "border-bottom",
86 "border-left",
87 "border-radius"
88 ]
89 },
90 {
91 "groupName": "Background",
92 "emptyLineBefore": "always",
93 "noEmptyLineBetween": true,
94 "properties": [
95 "background",
96 "background-color",
97 "background-image",
98 "background-repeat",
99 "background-position"
100 ]
101 },
102 {
103 "groupName": "Typography",
104 "emptyLineBefore": "always",
105 "noEmptyLineBetween": true,
106 "properties": [
107 "color",
108 "font-family",
109 "font-size",
110 "font-weight",
111 "line-height",
112 "text-align",
113 "text-transform"
114 ]
115 },
116 {
117 "groupName": "Visual",
118 "emptyLineBefore": "always",
119 "noEmptyLineBetween": true,
120 "properties": [
121 "transition",
122 "transform",
123 "visibility",
124 "opacity",
125 "cursor"
126 ]
127 }
128 ]
129 }
130}