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

Add ability to ignore certain props from jsx-sort-props #605

Closed
sohkai opened this issue May 17, 2016 · 1 comment
Closed

Add ability to ignore certain props from jsx-sort-props #605

sohkai opened this issue May 17, 2016 · 1 comment

Comments

@sohkai
Copy link

sohkai commented May 17, 2016

Useful when using React built-ins (ie. key, ref), or when you want a group of props to be together but the rest to be alphabetically sorted. For instance, I prefer having key and ref props to declared at the top before any other props, but all other props should be alphabetized.

Looking at the implementation, this looks like it should be fairly easy and I can make a PR soon, but I was wondering if there was any other feedback (maybe I missed something that already allows you to do this?).

@ljharb
Copy link
Member

ljharb commented Feb 2, 2022

key and ref are controllable with the reservedFirst option, added in #1134.

@ljharb ljharb closed this as completed Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants