From abd09f7efb3475d7c1f4a04d67f4fd0d7408d6b6 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 6 Oct 2018 11:37:19 +0300 Subject: [PATCH 1/2] Tighten stylelint config. --- .stylelintrc | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/.stylelintrc b/.stylelintrc index 520451b321b5..043c5ea5f421 100644 --- a/.stylelintrc +++ b/.stylelintrc @@ -6,6 +6,7 @@ "rules": { "at-rule-empty-line-before": null, "at-rule-name-space-after": "always", + "at-rule-no-unknown": null, "at-rule-no-vendor-prefix": true, "at-rule-semicolon-space-before": "never", "block-closing-brace-empty-line-before": null, @@ -27,6 +28,9 @@ "length-zero-no-unit": true, "max-empty-lines": 2, "max-line-length": null, + "media-feature-name-no-unknown": [true, { + "ignoreMediaFeatureNames": ["prefers-reduced-motion"] + }], "media-feature-name-no-vendor-prefix": true, "media-feature-parentheses-space-inside": "never", "media-feature-range-operator-space-after": "always", @@ -34,9 +38,6 @@ "no-descending-specificity": null, "no-duplicate-selectors": true, "number-leading-zero": "never", - "media-feature-name-no-unknown": [true, { - "ignoreMediaFeatureNames": ["prefers-reduced-motion"] - }], "order/properties-order": [ "position", "top", @@ -250,7 +251,22 @@ ], "property-no-vendor-prefix": true, "rule-empty-line-before": null, + "scss/at-function-named-arguments": "never", + "scss/at-function-parentheses-space-before": "never", + "scss/at-import-no-partial-leading-underscore": true, + "scss/at-mixin-argumentless-call-parentheses": null, + "scss/at-mixin-named-arguments": null, + "scss/at-mixin-parentheses-space-before": "never", + "scss/at-rule-no-unknown": true, + "scss/dollar-variable-colon-space-after": "at-least-one-space", + "scss/dollar-variable-colon-space-before": "never", "scss/dollar-variable-default": [true, { "ignore": "local" }], + "scss/dollar-variable-no-missing-interpolation": true, + "scss/media-feature-value-dollar-variable": null, + "scss/no-duplicate-dollar-variables": [null, { "ignoreInsideAtRules": ["if", "mixin"] }], + "scss/operator-no-newline-after": true, + "scss/operator-no-newline-before": true, + "scss/operator-no-unspaced": true, "selector-attribute-quotes": "always", "selector-list-comma-newline-after": "always", "selector-list-comma-newline-before": "never-multi-line", @@ -267,6 +283,7 @@ "selector-max-universal": 1, "selector-no-qualifying-type": true, "selector-no-vendor-prefix": true, + "shorthand-property-no-redundant-values": true, "string-quotes": "double", "value-keyword-case": "lower", "value-list-comma-newline-after": "never-multi-line", From f2920dfcca37cb0960f3eb50af9fb2cf9299a96f Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 13 Oct 2018 17:23:38 +0300 Subject: [PATCH 2/2] Improve .stylelintrc formatting. --- .stylelintrc | 43 ++++++++++++++++++++++++++++++++++--------- 1 file changed, 34 insertions(+), 9 deletions(-) diff --git a/.stylelintrc b/.stylelintrc index 043c5ea5f421..511ade25a227 100644 --- a/.stylelintrc +++ b/.stylelintrc @@ -1,5 +1,8 @@ { - "extends": ["stylelint-config-standard", "stylelint-config-recommended-scss"], + "extends": [ + "stylelint-config-standard", + "stylelint-config-recommended-scss" + ], "plugins": [ "stylelint-order" ], @@ -20,17 +23,26 @@ "declaration-no-important": true, "font-family-name-quotes": "always-where-recommended", "font-weight-notation": [ - "numeric", { - "ignore": ["relative"] - }], + "numeric", + { + "ignore": [ + "relative" + ] + } + ], "function-url-no-scheme-relative": true, "function-url-quotes": "always", "length-zero-no-unit": true, "max-empty-lines": 2, "max-line-length": null, - "media-feature-name-no-unknown": [true, { - "ignoreMediaFeatureNames": ["prefers-reduced-motion"] - }], + "media-feature-name-no-unknown": [ + true, + { + "ignoreMediaFeatureNames": [ + "prefers-reduced-motion" + ] + } + ], "media-feature-name-no-vendor-prefix": true, "media-feature-parentheses-space-inside": "never", "media-feature-range-operator-space-after": "always", @@ -260,10 +272,23 @@ "scss/at-rule-no-unknown": true, "scss/dollar-variable-colon-space-after": "at-least-one-space", "scss/dollar-variable-colon-space-before": "never", - "scss/dollar-variable-default": [true, { "ignore": "local" }], + "scss/dollar-variable-default": [ + true, + { + "ignore": "local" + } + ], "scss/dollar-variable-no-missing-interpolation": true, "scss/media-feature-value-dollar-variable": null, - "scss/no-duplicate-dollar-variables": [null, { "ignoreInsideAtRules": ["if", "mixin"] }], + "scss/no-duplicate-dollar-variables": [ + null, + { + "ignoreInsideAtRules": [ + "if", + "mixin" + ] + } + ], "scss/operator-no-newline-after": true, "scss/operator-no-newline-before": true, "scss/operator-no-unspaced": true,