weekly release 4.0dev
[moodle.git] / .stylelintrc
CommitLineData
855fc5d8 1{
0a023e5f
DP
2 "plugins": [
3 "stylelint-csstree-validator"
4 ],
855fc5d8 5 "rules": {
0a023e5f 6 "csstree/validator": true,
855fc5d8 7 "at-rule-empty-line-before": [ "always",
09074c91 8 {"except": [ "blockless-after-blockless"], ignore: ["after-comment", "inside-block"]}
855fc5d8
DP
9 ],
10 "at-rule-name-case": "lower",
11 "at-rule-name-space-after": "always-single-line",
773e68b0 12 "at-rule-no-unknown": null, # Enabled for non-scss in grunt.
855fc5d8 13 "at-rule-semicolon-newline-after": "always",
09074c91 14 "at-rule-semicolon-space-before": "never",
855fc5d8 15 "block-closing-brace-newline-after": "always",
09074c91 16 "block-closing-brace-newline-before": "always",
855fc5d8
DP
17 "block-closing-brace-space-before": "always-single-line",
18 "block-no-empty": true,
09074c91 19 "block-opening-brace-newline-after": "always",
855fc5d8
DP
20 "block-opening-brace-space-after": "always-single-line",
21 "block-opening-brace-space-before": "always",
22 "color-hex-case": ["lower", { "severity": "warning" }],
23 "color-hex-length": ["short", { "severity": "warning" }],
24 "color-no-invalid-hex": true,
25 "declaration-bang-space-after": "never",
26 "declaration-bang-space-before": "always",
27 "declaration-block-no-duplicate-properties": true,
855fc5d8
DP
28 "declaration-block-no-shorthand-property-overrides": true,
29 "declaration-block-semicolon-newline-after": "always-multi-line",
30 "declaration-block-semicolon-space-after": "always-single-line",
31 "declaration-block-semicolon-space-before": "never",
32 "declaration-block-single-line-max-declarations": 1,
33 "declaration-block-trailing-semicolon": "always",
34 "declaration-colon-newline-after": "always-multi-line",
35 "declaration-colon-space-after": "always-single-line",
36 "declaration-colon-space-before": "never",
eb695207 37 "declaration-no-important": true,
09074c91 38 "font-family-no-duplicate-names": true,
855fc5d8
DP
39 "function-calc-no-unspaced-operator": true,
40 "function-comma-newline-after": "always-multi-line",
41 "function-comma-space-after": "always-single-line",
42 "function-comma-space-before": "never",
43 "function-linear-gradient-no-nonstandard-direction": true,
44 "function-max-empty-lines": 0,
45 "function-name-case": "lower",
46 "function-parentheses-newline-inside": "always-multi-line",
47 "function-parentheses-space-inside": "never-single-line",
09074c91 48 "function-url-scheme-blacklist": ["data"],
855fc5d8
DP
49 "function-whitespace-after": "always",
50 "indentation": 4,
51 "keyframe-declaration-no-important": true,
52 "length-zero-no-unit": [true, { "severity": "warning" }],
53 "max-empty-lines": 2,
54 "max-line-length": [132, { "severity": "warning" }],
55 "media-feature-colon-space-after": "always",
56 "media-feature-colon-space-before": "never",
6bb410c3 57 "media-feature-parentheses-space-inside": "never",
855fc5d8
DP
58 "media-feature-range-operator-space-after": "always",
59 "media-feature-range-operator-space-before": "always",
60 "media-query-list-comma-newline-after": "always-multi-line",
61 "media-query-list-comma-space-after": "always-single-line",
62 "media-query-list-comma-space-before": "never",
855fc5d8
DP
63 "no-empty-source": true,
64 "no-eol-whitespace": true,
65 "no-extra-semicolons": [true, { "severity": "warning" }],
66 "no-invalid-double-slash-comments": true,
67 "no-unknown-animations": true,
68 "property-case": "lower",
6bb410c3 69 "property-no-unknown": true,
855fc5d8
DP
70 "selector-attribute-brackets-space-inside": "never",
71 "selector-attribute-operator-space-after": "never",
72 "selector-attribute-operator-space-before": "never",
73 "selector-combinator-space-after": "always",
74 "selector-combinator-space-before": "always",
75 "selector-list-comma-newline-after": "always",
76 "selector-list-comma-space-before": "never",
77 "selector-max-empty-lines": 0,
78 "selector-pseudo-class-case": "lower",
79 "selector-pseudo-class-no-unknown": true,
80 "selector-pseudo-class-parentheses-space-inside": "never",
81 "selector-pseudo-element-case": "lower",
82 "selector-pseudo-element-no-unknown": true,
855fc5d8
DP
83 "selector-type-case": "lower",
84 "selector-type-no-unknown": true,
855fc5d8 85 "string-no-newline": true,
09074c91 86 "time-min-milliseconds": 100,
f8ac90a7 87 "unit-blacklist": ["pt"],
855fc5d8
DP
88 "unit-case": "lower",
89 "unit-no-unknown": true,
773e68b0 90 "value-keyword-case": ["lower", {"ignoreKeywords": ["/(@|$)/"]}],
855fc5d8
DP
91 "value-list-comma-newline-after": "always-multi-line",
92 "value-list-comma-space-after": "always-single-line",
93 "value-list-comma-space-before": "never",
94 }
95}