Skip to content

bug: @Watch on native property is being flagged as a violation since it doesn't match a @Prop or @State #106

@laddi-netapp

Description

@laddi-netapp

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions