diff options
Diffstat (limited to '.stylelintrc.json')
-rw-r--r-- | .stylelintrc.json | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/.stylelintrc.json b/.stylelintrc.json new file mode 100644 index 0000000..63040f7 --- /dev/null +++ b/.stylelintrc.json | |||
@@ -0,0 +1,65 @@ | |||
1 | { | ||
2 | "extends": "stylelint-config-sass-guidelines", | ||
3 | "rules": { | ||
4 | "indentation": 4, | ||
5 | "number-leading-zero": "never", | ||
6 | "max-nesting-depth": 4, | ||
7 | "selector-class-pattern": [ | ||
8 | "^[closut](-[a-z0-9]+)+(__[a-z0-9]+(-[a-z0-9]+)*)*(--[a-z0-9]+(-[a-z0-9]+)*)*(\\@[a-z0-9]+(-[a-z0-9]+)*)?$", | ||
9 | { "resolveNestedSelectors": true } | ||
10 | ], | ||
11 | "declaration-colon-space-after": null, | ||
12 | "function-parentheses-newline-inside": "always-multi-line", | ||
13 | "function-parentheses-space-inside": "never-single-line", | ||
14 | "scss/dollar-variable-colon-space-after": null, | ||
15 | "order/properties-alphabetical-order": null, | ||
16 | "order/order": null, | ||
17 | "order/properties-order": [ | ||
18 | { "properties": [ "content", "quotes" ] }, | ||
19 | |||
20 | { "properties": [ "display", "visibility" ] }, | ||
21 | { "properties": [ "position", "z-index", "top", "right", "bottom", "left" ] }, | ||
22 | { "properties": [ "box-sizing" ] }, | ||
23 | { "properties": [ "flex", "flex-basis", "flex-direction", "flex-flow", "flex-grow", "flex-shrink", "flex-wrap", "align-content", "align-items", "align-self", "justify-content", "order" ] }, | ||
24 | { "properties": [ "width", "min-width", "max-width", "height", "min-height", "max-height" ] }, | ||
25 | { "properties": [ "margin", "margin-top", "margin-right", "margin-bottom", "margin-left" ] }, | ||
26 | { "properties": [ "padding", "padding-top", "padding-right", "padding-bottom", "padding-left" ] }, | ||
27 | { "properties": [ "float", "clear" ] }, | ||
28 | { "properties": [ "overflow", "overflow-x", "overflow-y" ] }, | ||
29 | { "properties": [ "clip", "zoom" ] }, | ||
30 | { "properties": [ "columns", "column-gap", "column-fill", "column-rule", "column-span", "column-count", "column-width" ] }, | ||
31 | { "properties": [ "table-layout", "empty-cells", "caption-side", "border-spacing", "border-collapse", "list-style", "list-style-position", "list-style-type", "list-style-image" ] }, | ||
32 | |||
33 | { "properties": [ "transform", "transform-origin", "transform-style", "backface-visibility", "perspective", "perspective-origin" ] }, | ||
34 | { "properties": [ "transition", "transition-property", "transition-duration", "transition-timing-function", "transition-delay" ] }, | ||
35 | { "properties": [ "animation", "animation-name", "animation-duration", "animation-play-state", "animation-timing-function", "animation-delay", "animation-iteration-count", "animation-direction" ] }, | ||
36 | |||
37 | { "properties": [ "border", "border-top", "border-right", "border-bottom", "border-left", "border-width", "border-top-width", "border-right-width", "border-bottom-width", "border-left-width" ] }, | ||
38 | { "properties": [ "border-style", "border-top-style", "border-right-style", "border-bottom-style", "border-left-style" ] }, | ||
39 | { "properties": [ "border-radius", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius" ] }, | ||
40 | { "properties": [ "border-color", "border-top-color", "border-right-color", "border-bottom-color", "border-left-color" ] }, | ||
41 | { "properties": [ "outline", "outline-color", "outline-offset", "outline-style", "outline-width" ] }, | ||
42 | { "properties": [ "stroke-width", "stroke-linecap", "stroke-dasharray", "stroke-dashoffset", "stroke" ] }, | ||
43 | |||
44 | { "properties": [ "opacity" ] }, | ||
45 | { "properties": [ "background", "background-color", "background-image", "background-repeat", "background-position", "background-size", "box-shadow", "fill" ] }, | ||
46 | |||
47 | { "properties": [ "color" ] }, | ||
48 | { "properties": [ "font", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-effect", "font-style", "font-variant", "font-weight" ] }, | ||
49 | { "properties": [ "font-emphasize", "font-emphasize-position", "font-emphasize-style" ] }, | ||
50 | { "properties": [ "letter-spacing", "line-height", "list-style", "word-spacing" ] }, | ||
51 | { "properties": [ "text-align", "text-align-last", "text-decoration", "text-indent", "text-justify", "text-overflow", "text-overflow-ellipsis", "text-overflow-mode", "text-rendering", "text-outline", "text-shadow", "text-transform", "text-wrap", "word-wrap", "word-break" ] }, | ||
52 | { "properties": [ "text-emphasis", "text-emphasis-color", "text-emphasis-style", "text-emphasis-position" ] }, | ||
53 | { "properties": [ "vertical-align", "white-space", "word-spacing", "hyphens" ] }, | ||
54 | { "properties": [ "src" ] }, | ||
55 | |||
56 | { "properties": [ "tab-size", "counter-reset", "counter-increment", "resize", "cursor", "pointer-events", "speak", "user-select", "nav-index", "nav-up", "nav-right", "nav-down", "nav-left" ] } | ||
57 | ] | ||
58 | }, | ||
59 | "overrides": [ | ||
60 | { | ||
61 | "files": ["src/style/**/*.scss"], | ||
62 | "customSyntax": "postcss-scss" | ||
63 | } | ||
64 | ] | ||
65 | } | ||