Skip to content

Commit

Permalink
feat: add jest support
Browse files Browse the repository at this point in the history
  • Loading branch information
Anatoli Huseu committed Nov 13, 2019
1 parent 68c413e commit 486a8f3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
10 changes: 10 additions & 0 deletions eslint/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,14 @@ module.exports = {
version: 'detect',
},
},
overrides: [
{
files: ['**/*.{test,spec}.{js,ts,tsx}'],
env: {
jest: true,
},
plugins: ['testing-library'],
extends: ['plugin:testing-library/react'],
},
],
}
15 changes: 10 additions & 5 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-react": "^7.16.0",
"eslint-plugin-react-hooks": "^2.2.0",
"eslint-plugin-testing-library": "^1.3.2",
"husky": "^3.0.9",
"lint-staged": "^9.4.2",
"prettier": "1.19.1"
Expand Down

0 comments on commit 486a8f3

Please sign in to comment.