Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 18, 2023. It is now read-only.

Extends correct class #9

Merged
merged 7 commits into from
Mar 26, 2021
Merged

Extends correct class #9

merged 7 commits into from
Mar 26, 2021

Conversation

keithamus
Copy link
Contributor

This adds the extends-correct-class rule.

This rule enforces that any call to customElements.define must be given the correct superclass. If the extends option is passed, then the given classes superclass must match the named element. If the extends option is not passed, then the given classes superclass must be HTMLElement.

Refs #3

@keithamus keithamus mentioned this pull request Mar 24, 2021
16 tasks
@keithamus keithamus force-pushed the extends-correct-class branch from bee0cba to ecf55b7 Compare March 24, 2021 18:33
@keithamus keithamus force-pushed the extends-correct-class branch from ecf55b7 to 6759956 Compare March 24, 2021 18:33
Copy link
Contributor

@koddsson koddsson left a comment

Choose a reason for hiding this comment

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

This looks good to me ✨

@keithamus keithamus merged commit e0967bc into main Mar 26, 2021
@keithamus keithamus deleted the extends-correct-class branch March 26, 2021 17:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants