为什么 codelyzer 4 会删除 templates-use-public?

why does codelyzer 4 remove templates-use-public?

Codelyzer 4 已删除使用模板public。 "ng lint"访问html模板中的私有成员不会报错。是否存在替代规则?

我仍然很清楚原因。但是在angular5中,"ng test"和"ng build -prod"在html模板访问私有成员时会报错。

从我在本期看到的: https://github.com/mgechev/codelyzer/issues/264
Codelyzer 现在将其委托给 angular 编译器本身。

还有 Angular 语言服务,它应该检查: https://angular.io/guide/language-service