From c1f242625b4ec723c42803cea94ded4a9cc546f2 Mon Sep 17 00:00:00 2001 From: crisbeto Date: Fri, 21 Apr 2017 19:57:35 +0200 Subject: [PATCH] build: disallow uses of the "initial" value Throws a Stylelint error when using the `initial` value for a property. `initial` doesn't work in IE and is easy to work around by looking up the default value for the property. Related to https://github.com/angular/material2/pull/4191#discussion_r112735007. --- stylelint-config.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stylelint-config.json b/stylelint-config.json index 3f0965eb1ad5..5451f05d3ad5 100644 --- a/stylelint-config.json +++ b/stylelint-config.json @@ -41,6 +41,10 @@ "declaration-block-semicolon-space-after": "always-single-line", "declaration-block-semicolon-newline-before": "never-multi-line", "declaration-block-semicolon-newline-after": "always-multi-line", + "declaration-property-value-blacklist": [ + { "/.*/": ["initial"] }, + { "message": "The `initial` value is not supported in IE."} + ], "block-closing-brace-newline-after": "always", "block-closing-brace-newline-before": "always-multi-line",