Skip to content
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

ensure jsx-sort-props fixer respects callbacksLast #1992

Closed
wants to merge 1 commit into from

Conversation

robertadkins
Copy link

The jsx-sort-props fixer would not place all callback props last if the option was enabled. This patch fixes that.

I tested on a React component which previously, when applying the fixer, sorted its props alphabetically and did not place the callbacks last.

The jsx-sort-props fixer would not place all callback props last if the option was enabled. This patch fixes that.

I tested on a React component which previously, when applying the fixer, sorted its props alphabetically and did not place the callbacks last.
Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #1991 - this is not safe to autofix.

tihonove added a commit to tihonove/eslint-plugin-react that referenced this pull request Oct 8, 2018
@ljharb ljharb closed this Dec 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants