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:
Aditya Bansal 2018-07-21 18:49:49 +05:30 committed by Tim Abbott
parent fa3a337f37
commit 6f392d36e2
1 changed files with 25 additions and 0 deletions

25
.stylelintrc Normal file
View File

@ -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,
}
}