Skip to content

Commit

Permalink
Add and enable eslint-plugin-jest
Browse files Browse the repository at this point in the history
ESLint rules for Jest.

Stumbled into it from jestjs/jest#6633 (comment)
  • Loading branch information
batmat committed Oct 17, 2018
1 parent 94c58a4 commit 06d4290
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 18 deletions.
6 changes: 5 additions & 1 deletion distribution/client/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
"parserOptions": {
"ecmaVersion": 2017
},
"extends": "eslint:recommended",
"extends": [
"eslint:recommended",
"plugin:jest/recommended"
],
"plugins": ["jest"],
"rules": {
"indent": [
"error",
Expand Down
34 changes: 27 additions & 7 deletions distribution/client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion distribution/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"ts-jest": "^23.10.3",
"typescript": "^3.1.1",
"webpack": "^4.17.1",
"webpack-cli": "^3.1.0"
"webpack-cli": "^3.1.0",
"eslint-plugin-jest": "^21.25.1"
},
"dependencies": {
"@feathersjs/authentication-client": "^1.0.4",
Expand Down
6 changes: 5 additions & 1 deletion services/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
"parserOptions": {
"ecmaVersion": 2017
},
"extends": "eslint:recommended",
"extends": [
"eslint:recommended",
"plugin:jest/recommended"
],
"plugins": ["jest"],
"rules": {
"indent": [
"error",
Expand Down
34 changes: 27 additions & 7 deletions services/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion services/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
"request": "^2.88.0",
"request-promise": "^4.2.2",
"socket.io-client": "^2.1.1",
"yargs": "^12.0.1"
"yargs": "^12.0.1",
"eslint-plugin-jest": "^21.25.1"
},
"jest": {
"collectCoverage": true,
Expand Down

0 comments on commit 06d4290

Please sign in to comment.