diff --git a/.eslintrc b/.eslintrc index 74249d5da..b561b7a30 100644 --- a/.eslintrc +++ b/.eslintrc @@ -15,7 +15,8 @@ "plugins": [ "flowtype", "prettier", - "react" + "react", + "jest" ], // Map from global var to bool specifying if it can be redefined @@ -245,6 +246,11 @@ "react/prop-types": 0, "react/react-in-jsx-scope": 1, "react/self-closing-comp": 1, - "react/wrap-multilines": 0 + "react/wrap-multilines": 0, + + // Jest Plugin + // The following rules are made available via `eslint-plugin-jest`. + "jest/no-disabled-tests": 1, + "jest/no-focused-tests": 1, } } diff --git a/package.json b/package.json index 16d100054..b34f62747 100644 --- a/package.json +++ b/package.json @@ -206,6 +206,7 @@ "eslint-config-fbjs": "^1.1.1", "eslint-plugin-babel": "^4.1.1", "eslint-plugin-flowtype": "^2.33.0", + "eslint-plugin-jest": "^21.5.0", "eslint-plugin-prettier": "2.1.1", "eslint-plugin-react": "^7.2.1", "flow-bin": "^0.63.0",