Is there an existing issue for this?
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
Is there an existing issue for this?
Description Overview
react v19 introduces a new
precedencestring prop to the<link>and<style>elements, but thereact/no-unknown-propertyrule doesn’t yet know about it and generates linting errors when used:example error:
these occur when running my
lintnpm run script:"lint": "eslint .",Expected Behavior
i expect the new
precedenceattribute to not be considered an “unknown” propertyeslint-plugin-react version
v7.36.1
eslint version
v8.57.0
node version
v22.7.0