react-codemod
react-codemod copied to clipboard
Actualize sort-comp for supporting more selectors like static-variables, static-methods, getters, setters etc
This PR implements a following "selectors" from react/sort-comp rule:
- static-variables
- static-methods
- instance-variables
- getters
- setters
- instance-methods
Also it fixes an issues of sorting, I covered it by tests to make sure it works well.
Any chance this could be merged? Having to manually patch this each time is kind of a pain 🙏