libreoffice-online/loleaflet/.stylelintrc.json
Pedro Pinto Silva bef32043d6 CSS lint: add more rules and fix problems
- Fix duplicated properties (ignore cases where it's needed
for browser compatibility);
- Fix space inconsistencies before !
- Fix space inconsistencies after colon
- Fix space inconsistencies after and before combinator (>, +, ~)
- Invalid calc
- Many rules added to json, namely no-extra-semicolons

Change-Id: I78af6bc546aeb1d7d7090e2ef278c895f0393a07
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102289
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Pedro Silva <pedro.silva@collabora.com>
2020-09-09 11:48:31 +02:00

29 lines
1,000 B
JSON

{
"rules": {
"indentation": "tab",
"string-quotes": "single",
"no-extra-semicolons": true,
"no-duplicate-selectors": true,
"selector-combinator-space-after": "always",
"selector-combinator-space-before": "always",
"selector-attribute-quotes": "always",
"selector-attribute-brackets-space-inside": "never",
"function-url-quotes": ["always", {
"except": ["empty"]
}],
"font-family-no-duplicate-names": true,
"declaration-block-no-duplicate-properties": [true, {
"ignore": ["consecutive-duplicates-with-different-values"]
}],
"function-calc-no-invalid": true,
"function-linear-gradient-no-nonstandard-direction": true,
"selector-pseudo-class-no-unknown": true,
"selector-pseudo-element-no-unknown": true,
"media-feature-name-no-unknown": true,
"comment-no-empty": true,
"no-invalid-double-slash-comments": true,
"shorthand-property-no-redundant-values": true,
"declaration-bang-space-before": "always",
"declaration-colon-space-after": "always"
}
}