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

bug: ESLint Warning with reflect: true Annotation and JSDoc Type in Stencil #115

Open
3 tasks done
marcomattes opened this issue Aug 29, 2024 · 0 comments
Open
3 tasks done

Comments

@marcomattes
Copy link

marcomattes commented Aug 29, 2024

Prerequisites

Stencil ESLint Version

0.8.0

Current Behavior

Hello everyone,

I am encountering an issue and I'm not sure if it's something I'm doing wrong or a problem with the tooling.

When a property is annotated with reflect: true, I receive a warning in ESLint as soon as I define the type in the JSDocs.

  /**
   * The last name
   * @type {boolean}
   * @default true
   */
  @Prop({ reflect: true }) last: boolean = false;
/home/projects/stencil-template-aiden/src/components/my-component/my-component.tsx
15:3  error  The @Prop decorator have not valid tags (type, memberof)  @stencil-community/required-jsdoc

Expected Behavior

There should be no error/warning in the console.

Steps to Reproduce

  1. Open the page: StackBlitz Example
  2. Run npm run lint
  3. See the error:

Code Reproduction URL

https://stackblitz.com/edit/stencil-template-aiden-puukdx

Additional Information

No response

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