mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Andrew Seguin
parent
e5a0f7d5a7
commit
74d906a598
+5
-1
@@ -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": [
|
||||
|
||||
Reference in New Issue
Block a user