-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
sort-comp: constructor must be placed after componentWillUnmount #97
Labels
Comments
Currently the default configuration is:
I think I will update the default configuration to get:
For now you can set up a custom configuration in your .eslintrc: ...
"react/sort-comp": [1, {
"order": [
"constructor",
"lifecycle",
"everything-else",
"render"
]
}]
... |
Sounds great! And thanks for the workaround |
This was referenced Jun 17, 2015
Closed
tpreusse
added a commit
to interactivethings/eslint-config-interactivethings
that referenced
this issue
Jul 20, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With
sort-comp
enabled and ES6 classes, the plugin reports thatconstructor
should be aftercomponentWillUnmount
. It should be an exception...Here's a simple example with the issue:
The text was updated successfully, but these errors were encountered: