aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.stylelintrc.json110
-rw-r--r--package.json3
2 files changed, 110 insertions, 3 deletions
diff --git a/.stylelintrc.json b/.stylelintrc.json
index 6094e04..029a623 100644
--- a/.stylelintrc.json
+++ b/.stylelintrc.json
@@ -1,6 +1,112 @@
1{ 1{
2 "extends": ["stylelint-config-standard"], 2 "extends": [
3 "stylelint-config-standard"
4 ],
5 "plugins": [
6 "stylelint-order"
7 ],
3 "rules": { 8 "rules": {
4 "selector-class-pattern": null 9 "declaration-empty-line-before": null,
10 "declaration-block-single-line-max-declarations": 1,
11 "custom-property-empty-line-before": "never",
12 "selector-class-pattern": null,
13 "no-duplicate-selectors": true,
14 "color-hex-length": "short",
15 "color-named": "always-where-possible",
16 "selector-attribute-quotes": "always",
17 "property-no-vendor-prefix": true,
18 "value-no-vendor-prefix": true,
19 "font-family-name-quotes": "always-where-required",
20 "comment-whitespace-inside": "always",
21 "comment-empty-line-before": "always",
22 "at-rule-no-vendor-prefix": true,
23 "selector-no-vendor-prefix": true,
24 "order/order": [
25 "custom-properties",
26 "dollar-variables",
27 "declarations",
28 "rules",
29 "at-rules"
30 ],
31 "order/properties-order": [
32 {
33 "groupName": "Display & Box Model",
34 "emptyLineBefore": "always",
35 "noEmptyLineBetween": true,
36 "properties": [
37 "display",
38 "overflow",
39 "box-sizing",
40 "width",
41 "height",
42 "margin",
43 "padding"
44 ]
45 },
46 {
47 "groupName": "Positioning",
48 "emptyLineBefore": "always",
49 "noEmptyLineBetween": true,
50 "properties": [
51 "position",
52 "top",
53 "right",
54 "bottom",
55 "left",
56 "z-index"
57 ]
58 },
59 {
60 "groupName": "Border",
61 "emptyLineBefore": "always",
62 "noEmptyLineBetween": true,
63 "properties": [
64 "border",
65 "border-top",
66 "border-right",
67 "border-bottom",
68 "border-left",
69 "border-radius"
70 ]
71 },
72 {
73 "groupName": "Background",
74 "emptyLineBefore": "always",
75 "noEmptyLineBetween": true,
76 "properties": [
77 "background",
78 "background-color",
79 "background-image",
80 "background-repeat",
81 "background-position"
82 ]
83 },
84 {
85 "groupName": "Typography",
86 "emptyLineBefore": "always",
87 "noEmptyLineBetween": true,
88 "properties": [
89 "color",
90 "font-family",
91 "font-size",
92 "font-weight",
93 "line-height",
94 "text-align",
95 "text-transform"
96 ]
97 },
98 {
99 "groupName": "Misc",
100 "emptyLineBefore": "always",
101 "noEmptyLineBetween": true,
102 "properties": [
103 "opacity",
104 "visibility",
105 "cursor",
106 "transition",
107 "transform"
108 ]
109 }
110 ]
5 } 111 }
6} 112}
diff --git a/package.json b/package.json
index 865e2a1..3b7142d 100644
--- a/package.json
+++ b/package.json
@@ -41,7 +41,8 @@
41 "globals": "^15.9.0", 41 "globals": "^15.9.0",
42 "rollup": "^4.21.3", 42 "rollup": "^4.21.3",
43 "stylelint": "^16.9.0", 43 "stylelint": "^16.9.0",
44 "stylelint-config-standard": "^36.0.1" 44 "stylelint-config-standard": "^36.0.1",
45 "stylelint-order": "^6.0.4"
45 }, 46 },
46 "dependencies": { 47 "dependencies": {
47 "easymde": "^2.18.0", 48 "easymde": "^2.18.0",