-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to sort shorthand properties on jsx-sort-props
You can now require that shorthand props should come before all other props, but still respecting the alphabetical order. The following are valid situations: ``` <Component a b="b" /> <Component x z a="a" b="b" /> ``` And the following are invalid: ``` <Component z x a="a" b="b" /> // should be in alphabetical order <Component x z b="b" a="a" /> // should be in alphabetical order <Component a="a" b="b" x z /> // shorthand props should be at the start ```
- Loading branch information
1 parent
1bd8c89
commit fc95cd3
Showing
3 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters