-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react/no-unknown-property throws on valid properties #3380
Comments
Also getting this for other svg properties as well
|
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
Downgrade to version 7.31.1. This is a breaking change and regression in version 7.31.2.
|
Thanks all; I'm on it and will release a v7.31.3 soon. @grybykm It's not a "breaking change" if it's not intentional, it's just a bug. Dial it back. |
This also happens in |
@ljharb I think I can do it. Give me 30 mins |
@AhmadMayo awesome, i've already got the test cases: test casesin "valid": { code: '<svg key="lock" viewBox="box" fill={10} d="d" stroke={1} strokeWidth={2} strokeLinecap={3} strokeLinejoin={4} transform="something" clipRule="else" x1={5} x2="6" y1="7" y2="8"></svg>' },
{ code: '<meta property="og:type" content="website" />' }, if you can make modifications to the existing rule to allow these valid properties that'd be awesome :-) |
@AhmadMayo any update? |
@ljharb added the properties and testing now |
@ljharb PR ready |
I get |
v7.31.1 has been set to "latest" for now, and v7.31.3 will be released within the next hour. After it's released, and this is closed, please file new issues if you continue to see issues with v7.31.3. Thanks everyone, and sorry for the inconvenience! |
v7.31.3 is now released. Please update, and file a new issue if you're still seeing problems. |
I recently upgraded eslint-plugin-react from v7.30.1 to v7.31.2, and when I tried to build, the rule started throwing on valid properties like key, viewBox, fill, d, and other SVG related properties - and none of the in kebab case, or contains a colon in their name.
eslint version: 8.23.0
nextjs version: 12.2.5
The text was updated successfully, but these errors were encountered: