镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Actualize sort-comp for supporting more selectors like static-variables, static-methods, getters, setters etc - #310

Open
DmitryKorlas wants to merge 2 commits into
reactjs:masterfrom
DmitryKorlas:sort-comp-more-declarations
Open

DmitryKorlas wants to merge 2 commits into
reactjs:masterfrom
DmitryKorlas:sort-comp-more-declarations

Conversation

@DmitryKorlas

@DmitryKorlas DmitryKorlas commented Dec 2, 2022 •

Copy link
Copy Markdown

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.

@stormwarning

Copy link
Copy Markdown

Any chance this could be merged? Having to manually patch this each time is kind of a pain 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants