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

feat (lifecycle-super): add new lifecycle-super rule #173

Merged
merged 1 commit into from
May 2, 2023

Conversation

43081j
Copy link
Owner

@43081j 43081j commented May 1, 2023

basically enforces that the following methods call super:

  • connectedCallback
  • disconnectedCallback
  • update

This one is specific to lit since we know for sure the base methods should usually be called.

Originally i did recommend this goes in eslint-plugin-wc, but on second thought it doesn't make much sense there since it isn't guaranteed that non-lit elements have these methods implemented.

@43081j 43081j merged commit 7e40fca into master May 2, 2023
@43081j 43081j deleted the lifecycle-super branch May 2, 2023 19:46
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.

1 participant