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: @Watch on native property is being flagged as a violation since it doesn't match a @Prop or @State #106

Closed
3 tasks done
laddi-netapp opened this issue Apr 26, 2024 · 1 comment

Comments

@laddi-netapp
Copy link
Contributor

laddi-netapp commented Apr 26, 2024

Prerequisites

Stencil ESLint Version

0.7.2

Current Behavior

I have a @Watch for a native property in a component. It is showing me the following lint error:

image

Expected Behavior

According to the Stencil documentation, watching native properties is supported (and it works correctly in my code). Therefore, there should be no eslint error here.

Steps to Reproduce

Create a component and add a @Watch that targets a native HTLM property.

Code Reproduction URL

N/A

Additional Information

No response

laddi-netapp added a commit to laddi-netapp/stencil-eslint that referenced this issue Apr 29, 2024
laddi-netapp added a commit to laddi-netapp/stencil-eslint that referenced this issue Apr 29, 2024
@laddi-netapp
Copy link
Contributor Author

I created a pull request for this: #107

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

2 participants