Skip to content

Commit

Permalink
Add jest override to .eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
outoftime committed Mar 17, 2019
1 parent 41914c3 commit 0f4523b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 0f4523b

Please sign in to comment.