Skip to content

no-unknown-attribute: false positive when using attribute in property decorator #181

@scola84

Description

@scola84

I have the following property:

@property({
  attribute: 'no-overflow',
  reflect: true,
  type: Boolean
})
public noOverflow?: boolean

When I use the attribute no-overflow in my html, I get the following error:

Unknown attribute 'no-overflow'. Did you mean '?noOverflow'? If you are not the author of this component
please consider using a 'data-*' attribute, adding the attribute to 'globalAttributes' or disabling the
'no-unknown-attribute' rule.lit-plugin(no-unknown-attribute)(2318)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions