File tree 2 files changed +6
-1
lines changed
packages/eslint-config-react-app
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ If you want to use this ESLint configuration in a project not built with Create
19
19
First, install this package, ESLint and the necessary plugins.
20
20
21
21
``` 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
23
23
```
24
24
25
25
Then create a file named ` .eslintrc.json ` with following contents in the root folder of your project:
Original file line number Diff line number Diff line change 28
28
"eslint-plugin-react" : " ^7.20.3" ,
29
29
"eslint-plugin-react-hooks" : " ^4.0.8"
30
30
},
31
+ "peerDependenciesMeta" : {
32
+ "eslint-plugin-jest" : {
33
+ "optional" : true
34
+ }
35
+ },
31
36
"dependencies" : {
32
37
"confusing-browser-globals" : " ^1.0.9"
33
38
},
You can’t perform that action at this time.
0 commit comments