Skip to content

Update .eslintrc with other react class properties - #372

Merged
justjake merged 2 commits into
airbnb:masterfrom
chrisportela:patch-1
Jun 24, 2015
Merged

Update .eslintrc with other react class properties#372
justjake merged 2 commits into
airbnb:masterfrom
chrisportela:patch-1

Conversation

@chrisportela

Copy link
Copy Markdown
Contributor

In eslint-plugin-react's page on their sorting rules they show the order I showed here. https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/sort-comp.md#rule-options

I noticed because according to the current rules contextTypes goes below render and I also noticed other methods were missing from the list. Since we're being specific we should also include the other methods and properties that eslint-plugin-react handles by default.

In `eslint-plugin-react`'s page on their sorting rules they show the order I showed here. https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/sort-comp.md#rule-options

I noticed because according to the current rules `contextTypes` goes below `render` and I also noticed other methods were missing from the list. Since we're being specific we should also include the other methods and properties that `eslint-plugin-react` handles by default.
@justjake

Copy link
Copy Markdown
Collaborator

Looks good to me. @goatslacker looks good to you?

@goatslacker

Copy link
Copy Markdown
Collaborator

LGTM

justjake added a commit that referenced this pull request Jun 24, 2015
Update .eslintrc with other react class properties
@justjake
justjake merged commit a70000b into airbnb:master Jun 24, 2015
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.

3 participants