MDL-55452 stylelint: prevent use of !important
[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",
eb695207 34 "declaration-no-important": true,
855fc5d8
DP
35 "function-calc-no-unspaced-operator": true,
36 "function-comma-newline-after": "always-multi-line",
37 "function-comma-space-after": "always-single-line",
38 "function-comma-space-before": "never",
39 "function-linear-gradient-no-nonstandard-direction": true,
40 "function-max-empty-lines": 0,
41 "function-name-case": "lower",
42 "function-parentheses-newline-inside": "always-multi-line",
43 "function-parentheses-space-inside": "never-single-line",
44 "function-url-data-uris": never,
45 "function-whitespace-after": "always",
46 "indentation": 4,
47 "keyframe-declaration-no-important": true,
48 "length-zero-no-unit": [true, { "severity": "warning" }],
49 "max-empty-lines": 2,
50 "max-line-length": [132, { "severity": "warning" }],
51 "media-feature-colon-space-after": "always",
52 "media-feature-colon-space-before": "never",
53 "media-feature-no-missing-punctuation": true,
54 "media-feature-range-operator-space-after": "always",
55 "media-feature-range-operator-space-before": "always",
56 "media-query-list-comma-newline-after": "always-multi-line",
57 "media-query-list-comma-space-after": "always-single-line",
58 "media-query-list-comma-space-before": "never",
59 "no-browser-hacks": [true, { "severity": "warning" }],
60 "no-empty-source": true,
61 "no-eol-whitespace": true,
62 "no-extra-semicolons": [true, { "severity": "warning" }],
63 "no-invalid-double-slash-comments": true,
64 "no-unknown-animations": true,
65 "property-case": "lower",
66 "selector-attribute-brackets-space-inside": "never",
67 "selector-attribute-operator-space-after": "never",
68 "selector-attribute-operator-space-before": "never",
69 "selector-combinator-space-after": "always",
70 "selector-combinator-space-before": "always",
71 "selector-list-comma-newline-after": "always",
72 "selector-list-comma-space-before": "never",
73 "selector-max-empty-lines": 0,
74 "selector-pseudo-class-case": "lower",
75 "selector-pseudo-class-no-unknown": true,
76 "selector-pseudo-class-parentheses-space-inside": "never",
77 "selector-pseudo-element-case": "lower",
78 "selector-pseudo-element-no-unknown": true,
79 "selector-root-no-composition": true,
80 "selector-type-case": "lower",
81 "selector-type-no-unknown": true,
82 "shorthand-property-no-redundant-values": [null, { "severity": "warning" }],
83 "string-no-newline": true,
84 "time-no-imperceptible": true,
85 "unit-blacklist": ["pt", "rem"],
86 "unit-case": "lower",
87 "unit-no-unknown": true,
88 "value-keyword-case": ["lower", {"ignoreKeywords": ["/@/"]}],
89 "value-list-comma-newline-after": "always-multi-line",
90 "value-list-comma-space-after": "always-single-line",
91 "value-list-comma-space-before": "never",
92 }
93}