Open elwynelwyn opened 4 years ago
Yup, I just faced this issue too.
An alternative workaround is that you can disable @stencil/element-type
in your ESLint config.
Thanks for this! Currently, this project doesn't support ESLint 7, although we're working on upgrading it to do so. I'll circle back and investigate once that's done
Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Stencil, please create a new issue and ensure the template is fully filled out.
Thank you for using Stencil!
Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Stencil, please create a new issue and ensure the template is fully filled out.
Thank you for using Stencil!
This bug also exists when running the rule on ESLint V8, FWIW. I'm throwing up a PR that should fix this case and another similar case that I ran into, where an explicit any
type annotation also throws a runtime error instead of reporting it/fixing it. (@Element() elm: any;
)
When adding the plugin to my eslint extends:
I started getting the following error:
The stacktrace pointed to my component, where I had a property with no type annotation:
Enabling TypeScript's
noImplicitAny
and then adding a type annotation fixes this issue and lets the linter continue: