-
Notifications
You must be signed in to change notification settings - Fork 20
feat(Spinner): remove isSVG #182
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
Conversation
|
i'm curious if we really just want to remove the property. Could this negatively impact people who are using isSVG=false explicitly already? |
thatblindgeye
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In regards to @gitdallas comment above, maybe rather than removing the prop we just warn consumers that the default value has been updated? Or tweaking the message for the fix to mention something like, "If you are passing false to this prop, you can ignore this rule".
|
Yeah the warning bit is what I'm a bit lost on. I can't figure out how to lessen the severity from a full error. I agree that maybe removing the prop isn't necessary here so I'll take another look and remove that. |
|
this pr has an example that could help adding some logic to look at the value and determine what to do based on that #205 i think the rules should be:
|
|
Agreed with those rules. Added in some extra tests to ensure that |
gitdallas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couple comments
packages/pf-codemods/README.md
Outdated
|
|
||
| ```jsx | ||
| <Card /> | ||
| <Card /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prettier ran?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Must have, I'll go back and add spaces. I think maybe it ran when I was doing the merge resolutions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to leave in the single quotes changing to double quotes because that's what the JSX should look like
Closes #146
This codemod removes the redundant
isSVGflag now that the default is true.I tried to get the codemod to throw a warning for all
Spinnerimports but I haven't quite figured out how to modify the severity of the message (which are all thrown as errors) so I'm holding off on that for now while I tinker with it more locally.