You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: