mirror of https://github.com/zulip/zulip.git
stylelint: Add more stylistic rules to lock down CSS a bit tighter.
This commit is contained in:
parent
5190f4c51a
commit
8304f0dbec
38
.stylelintrc
38
.stylelintrc
|
@ -1,24 +1,62 @@
|
||||||
{
|
{
|
||||||
"rules": {
|
"rules": {
|
||||||
# Stylistic rules for CSS.
|
# Stylistic rules for CSS.
|
||||||
|
"function-comma-space-after": "always",
|
||||||
|
"function-comma-space-before": "never",
|
||||||
|
"function-max-empty-lines": 0,
|
||||||
|
"function-whitespace-after": "always",
|
||||||
|
|
||||||
|
"value-keyword-case": "lower",
|
||||||
|
"value-list-comma-newline-after": "always-multi-line",
|
||||||
|
"value-list-comma-space-after": "always-single-line",
|
||||||
|
"value-list-comma-space-before": "never",
|
||||||
|
"value-list-max-empty-lines": 0,
|
||||||
|
|
||||||
|
"unit-case": "lower",
|
||||||
|
"property-case": "lower",
|
||||||
|
"color-hex-case": "lower",
|
||||||
|
|
||||||
|
"declaration-bang-space-before": "always",
|
||||||
|
"declaration-colon-newline-after": "always-multi-line",
|
||||||
"declaration-colon-space-after": "always-single-line",
|
"declaration-colon-space-after": "always-single-line",
|
||||||
"declaration-colon-space-before": "never",
|
"declaration-colon-space-before": "never",
|
||||||
"declaration-block-semicolon-newline-after": "always",
|
"declaration-block-semicolon-newline-after": "always",
|
||||||
"declaration-block-semicolon-space-before": "never",
|
"declaration-block-semicolon-space-before": "never",
|
||||||
"declaration-block-trailing-semicolon": "always",
|
"declaration-block-trailing-semicolon": "always",
|
||||||
|
|
||||||
|
"block-closing-brace-empty-line-before": "never",
|
||||||
"block-closing-brace-newline-after": "always",
|
"block-closing-brace-newline-after": "always",
|
||||||
"block-closing-brace-newline-before": "always",
|
"block-closing-brace-newline-before": "always",
|
||||||
"block-opening-brace-newline-after": "always",
|
"block-opening-brace-newline-after": "always",
|
||||||
"block-opening-brace-space-before": "always",
|
"block-opening-brace-space-before": "always",
|
||||||
|
|
||||||
|
"selector-attribute-brackets-space-inside": "never",
|
||||||
|
"selector-attribute-operator-space-after": "never",
|
||||||
|
"selector-attribute-operator-space-before": "never",
|
||||||
|
"selector-combinator-space-after": "always",
|
||||||
|
"selector-combinator-space-before": "always",
|
||||||
"selector-descendant-combinator-no-non-space": true,
|
"selector-descendant-combinator-no-non-space": true,
|
||||||
|
"selector-pseudo-class-parentheses-space-inside": "never",
|
||||||
|
"selector-pseudo-element-case": "lower",
|
||||||
|
"selector-pseudo-element-colon-notation": "double",
|
||||||
|
"selector-type-case": "lower",
|
||||||
"selector-list-comma-newline-after": "always",
|
"selector-list-comma-newline-after": "always",
|
||||||
"selector-list-comma-space-before": "never",
|
"selector-list-comma-space-before": "never",
|
||||||
|
|
||||||
|
"media-feature-colon-space-after": "always",
|
||||||
|
"media-feature-colon-space-before": "never",
|
||||||
|
"media-feature-name-case": "lower",
|
||||||
|
"media-feature-parentheses-space-inside": "never",
|
||||||
|
"media-feature-range-operator-space-after": "always",
|
||||||
|
"media-feature-range-operator-space-before": "always",
|
||||||
"media-query-list-comma-newline-after": "always",
|
"media-query-list-comma-newline-after": "always",
|
||||||
"media-query-list-comma-space-before": "never",
|
"media-query-list-comma-space-before": "never",
|
||||||
|
|
||||||
|
"at-rule-name-case": "lower",
|
||||||
|
"at-rule-name-space-after": "always",
|
||||||
|
"at-rule-semicolon-newline-after": "always",
|
||||||
|
"at-rule-semicolon-space-before": "never",
|
||||||
|
|
||||||
"comment-whitespace-inside": "always",
|
"comment-whitespace-inside": "always",
|
||||||
"indentation": 4,
|
"indentation": 4,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue