Skip to content

docs: note in Changelog that v3→v4 requires adding eslintConfig #10864

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,13 @@ Like any major release, `[email protected]` contains a number of breaking chan

We've upgraded to ESLint 7 and added many new rules including some for Jest and React Testing Library as well as the `import/no-anonymous-default-export` rule. We've also upgraded `eslint-plugin-hooks` to version 4.0.0 and removed the `EXTEND_ESLINT` flag as it is no longer required to customize the ESLint config.

In particular, you'll need to add the following to `package.json` for ESLint to continue to work:
```js
"eslintConfig": {
"extends": ["react-app", "react-app/jest"]
},
```

### Jest

We've upgraded to Jest 26 and now set `resetMocks` to `true` by default in the Jest config.
Expand Down