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

Expand support of no-missing-element-type-definition rule #108

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

JackRobards
Copy link
Owner

@JackRobards JackRobards commented Jan 20, 2025

The idea is to make sure this change supports both static class properties, and also variables

Tag name is correctly resolved if tag name is a static class property.
When "discovering" custom element definitions in HTMLElementTagNameMap, where the tag name is a static class property, the node holding the property is resolved. As such lit-analyzer no-missing-element-type-definition rule behaves correctly

Not a change I made, it is taken from these two PRs:
runem/web-component-analyzer#279
runem#331

Thank you to the original author!

I added a test for the variable case, which I am hoping to also solve in this PR.

… with no-missing-element-type-definition rule
Copy link

changeset-bot bot commented Jan 20, 2025

🦋 Changeset detected

Latest commit: f84df34

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
web-component-analyzer-fork Minor
lit-analyzer-fork Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@JackRobards JackRobards changed the title feat: feat: Expand support of no-missing-element-type-definition rule Jan 20, 2025
@JackRobards JackRobards changed the title feat: Expand support of no-missing-element-type-definition rule Expand support of no-missing-element-type-definition rule Jan 20, 2025
@JackRobards JackRobards merged commit e826628 into main Jan 20, 2025
6 checks passed
@JackRobards JackRobards deleted the missing-element-type-definition-class-properties branch January 20, 2025 07:52
@github-actions github-actions bot mentioned this pull request Jan 20, 2025
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