-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
Description
Is there an existing issue for this?
- I have searched the existing issues and my issue is uniqueMy issue appears in the command-line and not only in the text editorTo pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
Description Overview
react v19 introduces a new precedence
string prop to the <link>
and <style>
elements, but the react/no-unknown-property
rule doesn’t yet know about it and generates linting errors when used:
<>
<link href="https://foo.bar" precedence="medium" rel="canonical" />
<style href="unique-hash" precedence="anything">{` p { color: red; } `}</style>
</>
example error:
211:39 error Unknown property 'precedence' found react/no-unknown-property
these occur when running my lint
npm run script: "lint": "eslint .",
Expected Behavior
i expect the new precedence
attribute to not be considered an “unknown” property
eslint-plugin-react version
v7.36.1
eslint version
v8.57.0
node version
v22.7.0
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
no-unknown-property
support newprecedence
prop #3829