Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(eslint-plugin): no-lifecycle-call invalid super calls not being reported #314

Merged
merged 3 commits into from Jan 26, 2021

Conversation

rafaelss95
Copy link
Member

First commit: Adds a method to find the nearest node based on the received node.

Second commit: This clean up the huge amount of tests I noticed in #243 (comment) (most of them copied from contextual-lifecycle).

Third commit: Fixes #246, before this commit this rule didn't report any super <lifecycle method>(), regardless of the context and also reports any class, even if the class isn't decorated by Angular decorators. Now it may be fixed.

@rafaelss95 rafaelss95 changed the title fix(eslint-plugin): no-lifecycle-call invalid super calls being not reported fix(eslint-plugin): no-lifecycle-call invalid super calls not being reported Jan 23, 2021
Copy link
Member

@JamesHenry JamesHenry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[no-lifecycle-call]: should only allow super calls in the corresponding child method
2 participants