mirror of https://github.com/zulip/zulip.git
stylelint: Add .stylelintrc file with stylistic rules only.
This introduces only those stylistic rules which produced an analogous lint effect to what tools/check-css used to lint for.
This commit is contained in:
parent
fa3a337f37
commit
6f392d36e2
|
@ -0,0 +1,25 @@
|
||||||
|
{
|
||||||
|
"rules": {
|
||||||
|
# Stylistic rules for CSS.
|
||||||
|
"declaration-colon-space-after": "always-single-line",
|
||||||
|
"declaration-colon-space-before": "never",
|
||||||
|
"declaration-block-semicolon-newline-after": "always",
|
||||||
|
"declaration-block-semicolon-space-before": "never",
|
||||||
|
"declaration-block-trailing-semicolon": "always",
|
||||||
|
|
||||||
|
"block-closing-brace-newline-after": "always",
|
||||||
|
"block-closing-brace-newline-before": "always",
|
||||||
|
"block-opening-brace-newline-after": "always",
|
||||||
|
"block-opening-brace-space-before": "always",
|
||||||
|
|
||||||
|
"selector-descendant-combinator-no-non-space": true,
|
||||||
|
"selector-list-comma-newline-after": "always",
|
||||||
|
"selector-list-comma-space-before": "never",
|
||||||
|
|
||||||
|
"media-query-list-comma-newline-after": "always",
|
||||||
|
"media-query-list-comma-space-before": "never",
|
||||||
|
|
||||||
|
"comment-whitespace-inside": "always",
|
||||||
|
"indentation": 4,
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue