diff --git a/.eslintrc b/.eslintrc index a5da2f51ae..5355b909c3 100644 --- a/.eslintrc +++ b/.eslintrc @@ -33,6 +33,39 @@ "import/resolver": "node" } }, + { + "env": { + "browser": false, + "es6": true, + "node": true, + "jest": true + }, + "files": [ + "**/__tests__/*.js" + ], + "rules": { + "jest/no-alias-methods": "warn", + "jest/no-disabled-tests": "warn", + "jest/no-focused-tests": "warn", + "jest/no-identical-title": "error", + "jest/no-jasmine-globals": "error", + "jest/no-jest-import": "error", + "jest/no-test-return-statement": "error", + "jest/prefer-to-contain": "warn", + "jest/prefer-to-have-length": "warn", + "jest/valid-describe": "error", + "jest/valid-expect-in-promise": "error", + "jest/valid-expect": "error", + "jest/prefer-called-with": "warn" + }, + "plugins": [ + "import", + "jest", + "react", + "promise", + "private-props" + ] + }, { "files": "src/**/*", "rules": {