MDL-55167 grunt: add stylelint css linting
[moodle.git] / .stylelintrc
CommitLineData
855fc5d8
DP
1{
2 "rules": {
3 "at-rule-empty-line-before": [ "always",
4 {"except": [ "blockless-group", "first-nested" ], ignore: ["after-comment"]}
5 ],
6 "at-rule-name-case": "lower",
7 "at-rule-name-space-after": "always-single-line",
8 "at-rule-no-unknown": true,
9 "at-rule-semicolon-newline-after": "always",
10 "block-closing-brace-newline-after": "always",
11 "block-closing-brace-newline-before": "always-multi-line",
12 "block-closing-brace-space-before": "always-single-line",
13 "block-no-empty": true,
14 "block-no-single-line": true,
15 "block-opening-brace-newline-after": "always-multi-line",
16 "block-opening-brace-space-after": "always-single-line",
17 "block-opening-brace-space-before": "always",
18 "color-hex-case": ["lower", { "severity": "warning" }],
19 "color-hex-length": ["short", { "severity": "warning" }],
20 "color-no-invalid-hex": true,
21 "declaration-bang-space-after": "never",
22 "declaration-bang-space-before": "always",
23 "declaration-block-no-duplicate-properties": true,
24 "declaration-block-no-ignored-properties": true,
25 "declaration-block-no-shorthand-property-overrides": true,
26 "declaration-block-semicolon-newline-after": "always-multi-line",
27 "declaration-block-semicolon-space-after": "always-single-line",
28 "declaration-block-semicolon-space-before": "never",
29 "declaration-block-single-line-max-declarations": 1,
30 "declaration-block-trailing-semicolon": "always",
31 "declaration-colon-newline-after": "always-multi-line",
32 "declaration-colon-space-after": "always-single-line",
33 "declaration-colon-space-before": "never",
34 "function-calc-no-unspaced-operator": true,
35 "function-comma-newline-after": "always-multi-line",
36 "function-comma-space-after": "always-single-line",
37 "function-comma-space-before": "never",
38 "function-linear-gradient-no-nonstandard-direction": true,
39 "function-max-empty-lines": 0,
40 "function-name-case": "lower",
41 "function-parentheses-newline-inside": "always-multi-line",
42 "function-parentheses-space-inside": "never-single-line",
43 "function-url-data-uris": never,
44 "function-whitespace-after": "always",
45 "indentation": 4,
46 "keyframe-declaration-no-important": true,
47 "length-zero-no-unit": [true, { "severity": "warning" }],
48 "max-empty-lines": 2,
49 "max-line-length": [132, { "severity": "warning" }],
50 "media-feature-colon-space-after": "always",
51 "media-feature-colon-space-before": "never",
52 "media-feature-no-missing-punctuation": true,
53 "media-feature-range-operator-space-after": "always",
54 "media-feature-range-operator-space-before": "always",
55 "media-query-list-comma-newline-after": "always-multi-line",
56 "media-query-list-comma-space-after": "always-single-line",
57 "media-query-list-comma-space-before": "never",
58 "no-browser-hacks": [true, { "severity": "warning" }],
59 "no-empty-source": true,
60 "no-eol-whitespace": true,
61 "no-extra-semicolons": [true, { "severity": "warning" }],
62 "no-invalid-double-slash-comments": true,
63 "no-unknown-animations": true,
64 "property-case": "lower",
65 "selector-attribute-brackets-space-inside": "never",
66 "selector-attribute-operator-space-after": "never",
67 "selector-attribute-operator-space-before": "never",
68 "selector-combinator-space-after": "always",
69 "selector-combinator-space-before": "always",
70 "selector-list-comma-newline-after": "always",
71 "selector-list-comma-space-before": "never",
72 "selector-max-empty-lines": 0,
73 "selector-pseudo-class-case": "lower",
74 "selector-pseudo-class-no-unknown": true,
75 "selector-pseudo-class-parentheses-space-inside": "never",
76 "selector-pseudo-element-case": "lower",
77 "selector-pseudo-element-no-unknown": true,
78 "selector-root-no-composition": true,
79 "selector-type-case": "lower",
80 "selector-type-no-unknown": true,
81 "shorthand-property-no-redundant-values": [null, { "severity": "warning" }],
82 "string-no-newline": true,
83 "time-no-imperceptible": true,
84 "unit-blacklist": ["pt", "rem"],
85 "unit-case": "lower",
86 "unit-no-unknown": true,
87 "value-keyword-case": ["lower", {"ignoreKeywords": ["/@/"]}],
88 "value-list-comma-newline-after": "always-multi-line",
89 "value-list-comma-space-after": "always-single-line",
90 "value-list-comma-space-before": "never",
91 }
92}