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 instance-variables to react/sort-comp #12

Closed
amannn opened this issue Jul 25, 2018 · 2 comments · Fixed by #49
Closed

Add instance-variables to react/sort-comp #12

amannn opened this issue Jul 25, 2018 · 2 comments · Fixed by #49

Comments

@amannn
Copy link
Member

amannn commented Jul 25, 2018

Would be useful in order to support someRef = React.createRef().

See jsx-eslint/eslint-plugin-react#1879

@amannn
Copy link
Member Author

amannn commented Jan 8, 2019

Seems like there are still issues with this (see linked thread above).

@amannn amannn added the blocked label Jun 5, 2019
@jamesjara
Copy link

     "react/sort-comp": [1, {
        "order": [
          "type-annotations",
          "static-methods",
          "static-variables",
          "instance-variables",
          "/^on.+$/",
          "lifecycle",
          "everything-else",
          "render",
        ],
      }]
    },```
hope it works

amannn added a commit that referenced this issue Jul 9, 2020
@amannn amannn mentioned this issue Jul 9, 2020
@amannn amannn removed the blocked label Jul 9, 2020
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 a pull request may close this issue.

2 participants