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

allow exporting of Event sublcasses alongside custom elements - #50

Merged
keithamus merged 1 commit into
mainfrom
allow-exporting-of-event-sublcasses-alongside-custom-elements
Jan 3, 2023
Merged

allow exporting of Event sublcasses alongside custom elements#50
keithamus merged 1 commit into
mainfrom
allow-exporting-of-event-sublcasses-alongside-custom-elements

Conversation

@keithamus

Copy link
Copy Markdown
Contributor

This relaxes the no-exports-with-element rule to allow sub classes of events to also be exported alongside the class.

It's quite common to localise Event subclasses within the custom element, and they may share data with the custom element itself. Having this rule relaxed for just event classes still keeps the intent of the rule in place, but means custom element authors won't end up having to work around the rule for Events.

@keithamus
keithamus requested a review from a team as a code owner November 30, 2022 16:21
@keithamus
keithamus requested a review from srt32 November 30, 2022 16:21
@keithamus
keithamus force-pushed the allow-exporting-of-event-sublcasses-alongside-custom-elements branch from d908e8b to afcdf55 Compare January 3, 2023 11:33
@keithamus
keithamus merged commit 3dea2fb into main Jan 3, 2023
@keithamus
keithamus deleted the allow-exporting-of-event-sublcasses-alongside-custom-elements branch January 3, 2023 11:54
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