diff --git a/.eslintrc b/.eslintrc index 03c35f1..0da8fdf 100644 --- a/.eslintrc +++ b/.eslintrc @@ -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", @@ -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",