Skip to content

Commit

Permalink
Added order for eslint react/sort-comp rule (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
amilajack authored Apr 5, 2017
1 parent bbd8595 commit c6242ce
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"compat/compat": "error",
"consistent-return": "off",
"comma-dangle": "off",
"flowtype-errors/show-errors": "error",
"generator-star-spacing": "off",
"import/no-unresolved": "error",
"import/no-extraneous-dependencies": "off",
Expand All @@ -20,10 +21,12 @@
"promise/always-return": "error",
"promise/catch-or-return": "error",
"promise/no-native": "off",
"react/sort-comp": ["error", {
"order": ["type-annotations", "static-methods", "lifecycle", "everything-else", "render"]
}],
"react/jsx-no-bind": "off",
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }],
"react/prefer-stateless-function": "off",
"flowtype-errors/show-errors": "error"
"react/prefer-stateless-function": "off"
},
"plugins": [
"flowtype",
Expand Down

0 comments on commit c6242ce

Please sign in to comment.