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'm not sure why we'd want to special-case ``className` like that - in my experience it's usually set to the return of https://www.npmjs.com/package/classnames rather than manually typing strings anyways.
I mean that this wouldn’t be a generically applicable rule to any props with string values - so className would be a special case in that it would be hardcoded in the rule.
I agree - except that my experience tells me it's a best practice to use a utility and not to manually type out a space-separated string, and such a utility would have trimming built in already.
Is there an existing issue for this?
Description Overview
There is no rule for removing leading/trailing white space in className.
Expected Behavior
For there to be a rule for this.
eslint-plugin-react version
v7.32.2
eslint version
v17.0.2
node version
v16.17.0
The text was updated successfully, but these errors were encountered: