If I have the following, would it be possible for the rule use-life-cycle-interface to not throw a lint error?
class Parent implements OnInit {
public ngOnInit() {
}
}
class Child extends Parent {
public ngOnInit() {
super.ngOnInit();
}
}
I will play with it next week. If you can do it make a PR
I don't see a good way that can be done now.
Hi @preslavsh any news here? so thanks!
Not 100% related, but I'm wondering whether other rules can take inheritance into account, too? Like the The property "xyz" that you're trying to access does not exist in the class declaration, although it exists in parent class. This is kinda annoying and the reason why I have to keep this rules disabled.
But nevermind - loloks like this particular case is described in https://github.com/mgechev/codelyzer/issues/191
Will be fixed once we merge this.
upgrading from 3.0.0-beta.4 to 3.0.0 we seem to be getting this issue again. Is it the same or it just looks very similar? - this also happened with https://github.com/mgechev/codelyzer/issues/191#issuecomment-296660455
Yes, ngast support is pushed for 4.0.0. Because of the breaking changes introduced by tslint@5 I had to push a new major release.
Still happening, same error with inheritance
This is still an issue using 4.4.4. @mgechev any suggestions?
This issue should be re-opened.
Most helpful comment
Still happening, same error with inheritance