Skip to content

[Bug]: transform-origin is misattributed as unknown property #3914

Open
@fweth

Description

@fweth

Is there an existing issue for this?

  • I have searched the existing issues and my issue is unique
  • My issue appears in the command-line and not only in the text editor

Description Overview

In SVG elements, like rect, transform-origin is misattributed as unknown property, but it is a valid attribute.

<svg>
  <rect transform-origin="center" />
</svg>

I get the following message:

Unknown property 'transform-origin' foundeslintreact/no-unknown-property

Expected Behavior

eslint-plugin-react version

7.37.4

eslint version

9.23.0

node version

v22.14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions