Skip to content

Commit

Permalink
Breaking: add eslint-plugin-jest, upgrade Jest (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
forabi committed Jun 21, 2018
1 parent 21b1166 commit 0cb39f2
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
3 changes: 3 additions & 0 deletions clown/jest/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["./node_modules/@hollowverse/config/eslint/jest/.eslintrc.json"]
}
7 changes: 4 additions & 3 deletions clown/jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
]
},
"devDependencies": {
"@types/jest": "^22.2.0",
"jest": "^22.4.2",
"ts-jest": "^22.4.1"
"@types/jest": "^23.1.1",
"jest": "^23.1.0",
"ts-jest": "^22.4.6",
"eslint-plugin-jest": "^21.17.0"
}
}
19 changes: 19 additions & 0 deletions eslint/jest/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"plugins": ["jest"],
"extends": ["plugin:jest/recommended"],
"env": {
"jest/globals": true
},
"rules": {
"jest/no-disabled-tests": "error",
"jest/no-focused-tests": "error",
"jest/no-jasmine-globals": "error",
"jest/no-test-prefixes": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-be-undefined": "warn",
"jest/prefer-to-be-null": "warn",
"jest/lowercase-name": "warn",
"jest/consistent-test-it": "warn",
"jest/prefer-to-have-length": "warn"
}
}

0 comments on commit 0cb39f2

Please sign in to comment.