Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Use Jest DOM and Testing Library ESLint plugins
  • Loading branch information
nickserv committed Apr 23, 2020
commit ddb90073f5afa6b3b5c6799d97016f356ebc3559
2 changes: 2 additions & 0 deletions packages/eslint-config-react-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ module.exports = {

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

extends: ['plugin:jest-dom/recommended', 'plugin:testing-library/react'],

env: {
browser: true,
commonjs: true,
Expand Down
4 changes: 3 additions & 1 deletion packages/eslint-config-react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@
"eslint": "6.x",
"eslint-plugin-flowtype": "3.x || 4.x",
"eslint-plugin-import": "2.x",
"eslint-plugin-jest-dom": "1.x",
"eslint-plugin-jsx-a11y": "6.x",
"eslint-plugin-react": "7.x",
"eslint-plugin-react-hooks": "1.x || 2.x"
"eslint-plugin-react-hooks": "1.x || 2.x",
"eslint-plugin-testing-library": "1.x"
},
"dependencies": {
"confusing-browser-globals": "^1.0.9"
Expand Down
2 changes: 2 additions & 0 deletions packages/react-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@
"eslint-loader": "3.0.3",
"eslint-plugin-flowtype": "4.6.0",
"eslint-plugin-import": "2.20.1",
"eslint-plugin-jest-dom": "1.3.0",
"eslint-plugin-jsx-a11y": "6.2.3",
"eslint-plugin-react": "7.19.0",
"eslint-plugin-react-hooks": "^1.6.1",
"eslint-plugin-testing-library": "1.3.2",
"file-loader": "4.3.0",
"fs-extra": "^8.1.0",
"html-webpack-plugin": "4.0.0-beta.11",
Expand Down