diff --git a/.stylelintrc b/.stylelintrc index 9326b8199..2f8235d18 100644 --- a/.stylelintrc +++ b/.stylelintrc @@ -2,39 +2,44 @@ "extends": [ "stylelint-config-twbs-bootstrap" ], - "rules": { - "declaration-no-important": null, - "declaration-property-value-disallowed-list": { - "border": "none", - "outline": "none" - }, - "function-disallowed-list": [ - "calc", - "lighten", - "darken" - ], - "keyframes-name-pattern": null, - "property-disallowed-list": [ - "border-radius", - "border-top-left-radius", - "border-top-right-radius", - "border-bottom-right-radius", - "border-bottom-left-radius", - "transition" - ], - "scss/dollar-variable-default": [ - true, - { - "ignore": "local" + "overrides": [ + { + "files": ["**/*.scss"], + "rules": { + "declaration-no-important": null, + "declaration-property-value-disallowed-list": { + "border": "none", + "outline": "none" + }, + "function-disallowed-list": [ + "calc", + "lighten", + "darken" + ], + "keyframes-name-pattern": null, + "property-disallowed-list": [ + "border-radius", + "border-top-left-radius", + "border-top-right-radius", + "border-bottom-right-radius", + "border-bottom-left-radius", + "transition" + ], + "scss/dollar-variable-default": [ + true, + { + "ignore": "local" + } + ], + "scss/selector-no-union-class-name": true, + "selector-max-class": null, + "selector-max-combinators": null, + "selector-max-compound-selectors": null, + "selector-max-id": null, + "selector-max-specificity": null, + "selector-max-type": null, + "selector-no-qualifying-type": null } - ], - "scss/selector-no-union-class-name": true, - "selector-max-class": null, - "selector-max-combinators": null, - "selector-max-compound-selectors": null, - "selector-max-id": null, - "selector-max-specificity": null, - "selector-max-type": null, - "selector-no-qualifying-type": null - } + } + ] }