build: add lint rule to prevent binding to class attribute directly (#9289)

Adds a lint rule that prevents us from binding to `[class]` directly.

Fixes #8340.
This commit is contained in:
Kristiyan Kostadinov
2018-01-12 18:40:32 +01:00
committed by Andrew Seguin
parent e5a0f7d5a7
commit 74d906a598
+5 -1
View File
@@ -99,7 +99,11 @@
"moduleId": "^module\\.id$",
"preserveWhitespaces": "false$",
"changeDetection": "\\.OnPush$",
"!styles": ".*"
"!styles": ".*",
"!host": "\\[class\\]"
},
"Directive": {
"!host": "\\[class\\]"
}
}, "src/+(lib|cdk|material-experimental|cdk-experimental)/**/!(*.spec).ts"],
"require-license-banner": [