MDL-57945 stylelint: Upgrade 7.12.0
[moodle.git] / .stylelintrc
CommitLineData
855fc5d8
DP
1{
2 "rules": {
3 "at-rule-empty-line-before": [ "always",
09074c91 4 {"except": [ "blockless-after-blockless"], ignore: ["after-comment", "inside-block"]}
855fc5d8
DP
5 ],
6 "at-rule-name-case": "lower",
7 "at-rule-name-space-after": "always-single-line",
773e68b0 8 "at-rule-no-unknown": null, # Enabled for non-scss in grunt.
855fc5d8 9 "at-rule-semicolon-newline-after": "always",
09074c91 10 "at-rule-semicolon-space-before": "never",
855fc5d8 11 "block-closing-brace-newline-after": "always",
09074c91 12 "block-closing-brace-newline-before": "always",
855fc5d8
DP
13 "block-closing-brace-space-before": "always-single-line",
14 "block-no-empty": true,
09074c91 15 "block-opening-brace-newline-after": "always",
855fc5d8
DP
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,
855fc5d8
DP
24 "declaration-block-no-shorthand-property-overrides": true,
25 "declaration-block-semicolon-newline-after": "always-multi-line",
26 "declaration-block-semicolon-space-after": "always-single-line",
27 "declaration-block-semicolon-space-before": "never",
28 "declaration-block-single-line-max-declarations": 1,
29 "declaration-block-trailing-semicolon": "always",
30 "declaration-colon-newline-after": "always-multi-line",
31 "declaration-colon-space-after": "always-single-line",
32 "declaration-colon-space-before": "never",
eb695207 33 "declaration-no-important": true,
09074c91 34 "font-family-no-duplicate-names": 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",
09074c91 44 "function-url-scheme-blacklist": ["data"],
855fc5d8
DP
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",
6bb410c3 53 "media-feature-parentheses-space-inside": "never",
855fc5d8
DP
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",
855fc5d8
DP
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",
6bb410c3 65 "property-no-unknown": true,
855fc5d8
DP
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,
855fc5d8
DP
79 "selector-type-case": "lower",
80 "selector-type-no-unknown": true,
855fc5d8 81 "string-no-newline": true,
09074c91 82 "time-min-milliseconds": 100,
f8ac90a7 83 "unit-blacklist": ["pt"],
855fc5d8
DP
84 "unit-case": "lower",
85 "unit-no-unknown": true,
773e68b0 86 "value-keyword-case": ["lower", {"ignoreKeywords": ["/(@|$)/"]}],
855fc5d8
DP
87 "value-list-comma-newline-after": "always-multi-line",
88 "value-list-comma-space-after": "always-single-line",
89 "value-list-comma-space-before": "never",
90 }
91}