Skip to content

Commit 7480e2d

Browse files
committed
Use Jest ESlint plugin
1 parent ddb9007 commit 7480e2d

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

packages/eslint-config-react-app/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ module.exports = {
3030

3131
plugins: ['import', 'flowtype', 'jsx-a11y', 'react', 'react-hooks'],
3232

33-
extends: ['plugin:jest-dom/recommended', 'plugin:testing-library/react'],
33+
extends: [
34+
'plugin:jest/recommended',
35+
'plugin:jest-dom/recommended',
36+
'plugin:testing-library/react',
37+
],
3438

3539
env: {
3640
browser: true,

packages/eslint-config-react-app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"eslint": "6.x",
2222
"eslint-plugin-flowtype": "3.x || 4.x",
2323
"eslint-plugin-import": "2.x",
24+
"eslint-plugin-jest": "23.x",
2425
"eslint-plugin-jest-dom": "1.x",
2526
"eslint-plugin-jsx-a11y": "6.x",
2627
"eslint-plugin-react": "7.x",

packages/react-scripts/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"eslint-loader": "3.0.3",
4949
"eslint-plugin-flowtype": "4.6.0",
5050
"eslint-plugin-import": "2.20.1",
51+
"eslint-plugin-jest": "23.1.1",
5152
"eslint-plugin-jest-dom": "1.3.0",
5253
"eslint-plugin-jsx-a11y": "6.2.3",
5354
"eslint-plugin-react": "7.19.0",

0 commit comments

Comments
 (0)