Skip to content

Commit 10e518a

Browse files
committed
fix(eslint-config-react-app): Make eslint-plugin-jest an optional peerDependency
1 parent d5c0fe2 commit 10e518a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Diff for: packages/eslint-config-react-app/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ If you want to use this ESLint configuration in a project not built with Create
1919
First, install this package, ESLint and the necessary plugins.
2020

2121
```sh
22-
npm install --save-dev eslint-config-react-app @typescript-eslint/eslint-plugin@^4.0.0 @typescript-eslint/parser@^4.0.0 babel-eslint@^10.0.0 eslint@^7.5.0 eslint-plugin-flowtype@^5.2.0 eslint-plugin-import@^2.22.0 eslint-plugin-jest@^24.0.0 eslint-plugin-jsx-a11y@^6.3.1 eslint-plugin-react@^7.20.3 eslint-plugin-react-hooks@^4.0.8
22+
npm install --save-dev eslint-config-react-app @typescript-eslint/eslint-plugin@^4.0.0 @typescript-eslint/parser@^4.0.0 babel-eslint@^10.0.0 eslint@^7.5.0 eslint-plugin-flowtype@^5.2.0 eslint-plugin-import@^2.22.0 eslint-plugin-jsx-a11y@^6.3.1 eslint-plugin-react@^7.20.3 eslint-plugin-react-hooks@^4.0.8
2323
```
2424

2525
Then create a file named `.eslintrc.json` with following contents in the root folder of your project:

Diff for: packages/eslint-config-react-app/package.json

+5
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
"eslint-plugin-react": "^7.20.3",
2929
"eslint-plugin-react-hooks": "^4.0.8"
3030
},
31+
"peerDependenciesMeta": {
32+
"eslint-plugin-jest": {
33+
"optional": true
34+
}
35+
},
3136
"dependencies": {
3237
"confusing-browser-globals": "^1.0.9"
3338
},

0 commit comments

Comments
 (0)