diff --git a/.stylelintrc b/.stylelintrc index 43733b7d..fcc4d0c2 100644 --- a/.stylelintrc +++ b/.stylelintrc @@ -4,7 +4,8 @@ "stylelint-config-css-modules" ], "plugins": [ - "stylelint-declaration-block-order" + "stylelint-declaration-block-order", + "stylelint-declaration-use-variable" ], "rules": { "at-rule-no-vendor-prefix": true, @@ -252,6 +253,16 @@ "declarations", "rules", "at-rules" + ], + + "sh-waqar/declaration-use-variable": [ + [ + "/color/", + "z-index", + "font-size", + "border-radius", + "/background/" + ] ] } } diff --git a/package.json b/package.json index 4a0e5d23..1ff9aa1b 100644 --- a/package.json +++ b/package.json @@ -88,6 +88,7 @@ "stylelint-config-css-modules": "^0.1.0", "stylelint-config-standard": "^13.0.2", "stylelint-declaration-block-order": "^0.1.0", + "stylelint-declaration-use-variable": "^1.6.0", "url-loader": "^0.5.7", "webpack": "^1.13.2", "webpack-dev-server": "^1.15.1",