-
Notifications
You must be signed in to change notification settings - Fork 37
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
Considering enabling react/no-unknown-property
#52
Comments
I'd be strongly in favor. |
We initially didn't turn this on as we preference TypeScript, and obviously this should be flagged in TypeScript as invalid - but we didn't consider the auto-fix aspect, which is really great. |
Hi hi! Checking in to see if there's any movement or further consideration for this? Really missing this every day! |
We definitely plan to enable this, but it'll be a breaking change (a change to a default) so we were hoping to group it with some other items. I was hoping to group it with #54 which is apparently close to shipping. |
Hi! I'm still very bogged down by converting casing. I bet I'm not alone here, getting this in would be a tiny but mighty DX win across the Engineering org. |
Resolves #52 BREAKING CHANGE: `react/no-unknown-property` has been enabled as it provides a useful auto-fix for SVG properties.
Resolves #52 BREAKING CHANGE: `react/no-unknown-property` has been enabled as it provides a useful auto-fix for SVG properties.
Resolves #52 BREAKING CHANGE: `react/no-unknown-property` has been enabled as it provides a useful auto-fix for SVG properties.
🎉 This PR is included in version 5.0.0 🎉 The release is available on: |
Today, when copying SVG elements from Figma to React, many of the properties will be in snake case (
stroke-width
) but in React we need them to be camel case (strokeWidth
)Right now, there's no way to autofix those errors so a lot of time is spent on manually find and replacing on each SVG copied over. I've previously enabled
react/no-unknown-property
which will auto-fix the SVG errors:Thanks!
The text was updated successfully, but these errors were encountered: