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

Sort static methods above constructor for React #715

Merged
merged 1 commit into from
Feb 4, 2016

Conversation

lencioni
Copy link
Member

@lencioni lencioni commented Feb 4, 2016

I think it makes more sense to put static methods above the constructor
in classes. I would like to update the ESLint configuration to match
this, but it looks like the react/sort-comp rule does not support it
quite yet.

jsx-eslint/eslint-plugin-react#128

I think it makes more sense to put static methods above the constructor
in classes. I would like to update the ESLint configuration to match
this, but it looks like the react/sort-comp rule does not support it
quite yet.

  jsx-eslint/eslint-plugin-react#128
@ljharb
Copy link
Collaborator

ljharb commented Feb 4, 2016

LGTM

ljharb added a commit that referenced this pull request Feb 4, 2016
[guide] [react] Sort static methods above constructor
@ljharb ljharb merged commit 44cc90f into airbnb:master Feb 4, 2016
lencioni added a commit to lencioni/react-codemod that referenced this pull request Feb 26, 2016
The Airbnb JavaScript style guide was recently updated to sort static
methods to the tops of classes [0]. Since this codemod is designed to
follow the constraints of the Airbnb style guide, I figured it would be
good to update this as well.

[0]: airbnb/javascript#715
lencioni added a commit to lencioni/react-codemod that referenced this pull request Feb 26, 2016
The Airbnb JavaScript style guide was recently updated to sort static
methods to the tops of classes [0]. Since this codemod is designed to
follow the constraints of the Airbnb style guide, I figured it would be
good to update this as well.

[0]: airbnb/javascript#715
superbuddyy pushed a commit to superbuddyy/react-codemod that referenced this pull request Aug 9, 2022
The Airbnb JavaScript style guide was recently updated to sort static
methods to the tops of classes [0]. Since this codemod is designed to
follow the constraints of the Airbnb style guide, I figured it would be
good to update this as well.

[0]: airbnb/javascript#715
cookieranger pushed a commit to cookieranger/react-codemod that referenced this pull request Jan 16, 2023
The Airbnb JavaScript style guide was recently updated to sort static
methods to the tops of classes [0]. Since this codemod is designed to
follow the constraints of the Airbnb style guide, I figured it would be
good to update this as well.

[0]: airbnb/javascript#715
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants