-
-
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
[jsx-sort-props
] consider className as reserved props
#3175
Comments
Why? It's not a special prop. |
My team has a rule: className must be placed before all other props |
See https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-sort-props.md#rule-options ; you can add it in |
Oh, it works.Thanks |
@ljharb it's not working now |
@saimonkat y9ull need to elaborate; the OP fixed it by fixing their config. |
@ljharb sorry, what do you mean? How can I use className in the reservedFirst prop at jsx-sort-props if it not allows it?
|
You're right, only those 4 can be in |
Hello
Can we support this?
The text was updated successfully, but these errors were encountered: