File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
packages/eslint-config-react-app Expand file tree Collapse file tree 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
1919First, 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
2525Then 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 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 },
You can’t perform that action at this time.
0 commit comments