MDL-61052 assign: Improve strip_images() to avoid HTML5 tags errors
[moodle.git] / .stylelintrc
blobae818b0bf39a3f12f8e487960953452f8beeca80
2     "plugins": [
3         "stylelint-csstree-validator"
4     ],
5     "rules": {
6         "csstree/validator": true,
7         "at-rule-empty-line-before": [ "always",
8           {"except": [ "blockless-after-blockless"], ignore: ["after-comment", "inside-block"]}
9         ],
10         "at-rule-name-case": "lower",
11         "at-rule-name-space-after": "always-single-line",
12         "at-rule-no-unknown": null, # Enabled for non-scss in grunt.
13         "at-rule-semicolon-newline-after": "always",
14         "at-rule-semicolon-space-before": "never",
15         "block-closing-brace-newline-after": "always",
16         "block-closing-brace-newline-before": "always",
17         "block-closing-brace-space-before": "always-single-line",
18         "block-no-empty": true,
19         "block-opening-brace-newline-after": "always",
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,
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",
37         "declaration-no-important": true,
38         "font-family-no-duplicate-names": true,
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",
48         "function-url-scheme-blacklist": ["data"],
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",
57         "media-feature-parentheses-space-inside": "never",
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",
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",
69         "property-no-unknown": true,
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,
83         "selector-type-case": "lower",
84         "selector-type-no-unknown": true,
85         "string-no-newline": true,
86         "time-min-milliseconds": 100,
87         "unit-blacklist": ["pt"],
88         "unit-case": "lower",
89         "unit-no-unknown": true,
90         "value-keyword-case": ["lower", {"ignoreKeywords": ["/(@|$)/"]}],
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   }