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

Linting uses .js JSDOC comments rather than wca output from .ts files #363

Open
bilner opened this issue Jul 8, 2024 · 0 comments
Open

Comments

@bilner
Copy link

bilner commented Jul 8, 2024

In my new lit-html project lit-analyzer on both the CLI and via the ts-plugin were erroring with "no-unknown-attributes" when I was using an attribute from one of my own components.

My understanding is lit-analyzer uses web-component-analyzer to extract the meta information of the component, so I double checked the output from the TypeScript file which correctly showed the custom property/attribute.

It looks like lit-analyzer only looks at attributes defined in JSDOC in the .js file which means one needs to add both the JSDOC and transpile the component for linting to work as expected.

Is it possible to not have to use JSDOC and/or not have to compile to JS for linting to work?

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

No branches or pull requests

1 participant