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
When using lit-analyzer for linting code that uses vaadin-grid, there are warnings for certain attributes.
Expected outcome
No warnings when using attributes corresponding to camel case properties.
Actual outcome
The following warnings are shown:
Unknown attribute 'flex-grow'. Did you mean 'flexGrow'?
37: flex-grow="0"
no-unknown-attribute
Unknown attribute 'auto-width'. Did you mean '?autoWidth'?
47: auto-width
no-unknown-attribute
The problem is that @attr annotations are getting removed by gen-typescript-declarations 😕
And we need them in *.d.ts files in order to be picked up by web-component-analyzer.
Submitted a PR to gen-typescript-declarations to address that: Polymer/tools#3508
While waiting for it to land, we might create a custom build and integrate it with magi-cli.
Description
When using
lit-analyzer
for linting code that usesvaadin-grid
, there are warnings for certain attributes.Expected outcome
No warnings when using attributes corresponding to camel case properties.
Actual outcome
The following warnings are shown:
Steps to reproduce
yarn
to install dependenciesSuggested fix
Add the following to JSDoc annotations for corresponding properties:
The text was updated successfully, but these errors were encountered: