We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
jsx-sort-props
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
Similar to how ESLint's sort-keys has a configuration option of minKeys, it would be nice to have a minProps option.
sort-keys
minKeys
minProps
The text was updated successfully, but these errors were encountered:
Why, exactly?
Sorry, something went wrong.
Ah sorry, should have added context. Two reasons:
<MyButton type="submit" color="blue" variant="solid" onBlur={onBlur} onClick={onClick} />
while if a component has like 10+ props, then I think it should definitely be ordered.
It seems (1) was the motivation for the analogue sort-keys being added to ESLint (see convo here).
I guess it's fine, altho I'm not sure it's a good thing to be tacitly encouraging reduced enforcement.
No branches or pull requests
Similar to how ESLint's
sort-keys
has a configuration option ofminKeys
, it would be nice to have aminProps
option.The text was updated successfully, but these errors were encountered: