stenciljs/eslint-plugin
Auf GitHub ansehenbug: ESLint Warning with reflect: true Annotation and JSDoc Type in Stencil
Open
#115 geöffnet am 29. Aug. 2024
Help Wanted
Repository-Metriken
- Stars
- (71 Stars)
- PR-Merge-Metriken
- (PR-Metriken ausstehend)
Beschreibung
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
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
- Open the page: StackBlitz Example
- Run
npm run lint - See the error:
Code Reproduction URL
https://stackblitz.com/edit/stencil-template-aiden-puukdx
Additional Information
No response