You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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:
<><linkhref="https://foo.bar"precedence="medium"rel="canonical"/><stylehref="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
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Description Overview
react v19 introduces a new
precedence
string prop to the<link>
and<style>
elements, but thereact/no-unknown-property
rule doesn’t yet know about it and generates linting errors when used:example error:
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” propertyeslint-plugin-react version
v7.36.1
eslint version
v8.57.0
node version
v22.7.0
The text was updated successfully, but these errors were encountered: