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

Prettier Rule for React Component Property Sorting #39

Closed
atb-brown opened this issue Nov 28, 2023 · 3 comments · Fixed by #55
Closed

Prettier Rule for React Component Property Sorting #39

atb-brown opened this issue Nov 28, 2023 · 3 comments · Fixed by #55
Labels
build This issue is related to the automated build, its stability, and/or SCA.

Comments

@atb-brown
Copy link
Owner

I would like a rule that will automatically sort all properties (and sub-properties) in my React component declarations.

For instance, this pattern

<MyComp beta="bar" alpha={{z="foo1", y="foo2"}} />

Will be fixed to conform to this pattern

<MyComp alpha={{y="foo2", z="foo1"}} beta="bar" />
@atb-brown atb-brown added the build This issue is related to the automated build, its stability, and/or SCA. label Nov 28, 2023
@avelynhc
Copy link
Contributor

@atb-brown I can work on this along with #38 as these are all related to Prettier. Let me know. Thanks!

@atb-brown
Copy link
Owner Author

@atb-brown I can work on this along with #38 as these are all related to Prettier. Let me know. Thanks!

Hello @avelynhc. Be my guest. :)

@atb-brown
Copy link
Owner Author

Completed with #55

Thanks, @avelynhc !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build This issue is related to the automated build, its stability, and/or SCA.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants