weekly release 3.4dev
[moodle.git] / .stylelintrc
CommitLineData
855fc5d8
DP
1{
2 "rules": {
3 "at-rule-empty-line-before": [ "always",
773e68b0 4 {"except": [ "blockless-group"], ignore: ["after-comment", "all-nested"]}
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
DP
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,
6bb410c3 54 "media-feature-parentheses-space-inside": "never",
855fc5d8
DP
55 "media-feature-range-operator-space-after": "always",
56 "media-feature-range-operator-space-before": "always",
57 "media-query-list-comma-newline-after": "always-multi-line",
58 "media-query-list-comma-space-after": "always-single-line",
59 "media-query-list-comma-space-before": "never",
773e68b0 60 "no-browser-hacks": null, # Enabled for non-scss in grunt.
855fc5d8
DP
61 "no-empty-source": true,
62 "no-eol-whitespace": true,
63 "no-extra-semicolons": [true, { "severity": "warning" }],
64 "no-invalid-double-slash-comments": true,
65 "no-unknown-animations": true,
66 "property-case": "lower",
6bb410c3 67 "property-no-unknown": true,
855fc5d8
DP
68 "selector-attribute-brackets-space-inside": "never",
69 "selector-attribute-operator-space-after": "never",
70 "selector-attribute-operator-space-before": "never",
71 "selector-combinator-space-after": "always",
72 "selector-combinator-space-before": "always",
73 "selector-list-comma-newline-after": "always",
74 "selector-list-comma-space-before": "never",
75 "selector-max-empty-lines": 0,
76 "selector-pseudo-class-case": "lower",
77 "selector-pseudo-class-no-unknown": true,
78 "selector-pseudo-class-parentheses-space-inside": "never",
79 "selector-pseudo-element-case": "lower",
80 "selector-pseudo-element-no-unknown": true,
81 "selector-root-no-composition": true,
82 "selector-type-case": "lower",
83 "selector-type-no-unknown": true,
855fc5d8
DP
84 "string-no-newline": true,
85 "time-no-imperceptible": true,
f8ac90a7 86 "unit-blacklist": ["pt"],
855fc5d8
DP
87 "unit-case": "lower",
88 "unit-no-unknown": true,
773e68b0 89 "value-keyword-case": ["lower", {"ignoreKeywords": ["/(@|$)/"]}],
855fc5d8
DP
90 "value-list-comma-newline-after": "always-multi-line",
91 "value-list-comma-space-after": "always-single-line",
92 "value-list-comma-space-before": "never",
93 }
94}