From 6f392d36e235075bf935218ac9a37a6d46ebf2c5 Mon Sep 17 00:00:00 2001 From: Aditya Bansal Date: Sat, 21 Jul 2018 18:49:49 +0530 Subject: [PATCH] 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. --- .stylelintrc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .stylelintrc diff --git a/.stylelintrc b/.stylelintrc new file mode 100644 index 0000000000..68cf8bf95e --- /dev/null +++ b/.stylelintrc @@ -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, + } +}