-
Notifications
You must be signed in to change notification settings - Fork 150
v5.0.0 #471
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
Merged
v5.0.0 #471
Changes from 15 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
f9f9add
chore: bump supported node version (#463)
MichaelDeBoey dff6745
chore: update dependencies (#464)
MichaelDeBoey 0338bc3
feat(no-debug): rename to `no-debugging-utils` (#469)
MichaelDeBoey 8c46203
feat(no-unnecessary-act): add to React config by default (#468)
MichaelDeBoey 887e489
feat(no-render-in-setup): add to Angular, React & Vue configs by defa…
MichaelDeBoey 8fb3b64
feat(no-wait-for-multiple-assertions): add to all configs by default …
MichaelDeBoey 4cfb3cf
chore: bump dev dependencies (#497)
Belco90 0b35c14
feat(no-wait-for-side-effects): add to all configs by default (#484)
MichaelDeBoey e0a34ed
feat(no-wait-for-snapshot): add to all configs by default (#485)
MichaelDeBoey 17d5376
feat(prefer-presence-queries): add to all configs by default (#486)
MichaelDeBoey ea893cc
feat(prefer-query-by-disappearance): add to all configs by default (#…
MichaelDeBoey e3ebef8
feat(no-unnecessary-act): make `isStrict` option `true` by default (#…
MichaelDeBoey 5b03edb
feat: support ESLint v8 (#465)
MichaelDeBoey 307bfac
chore: bump jest dependencies
Belco90 6dd5158
docs: add migration guide to v5
Belco90 ffe5cfe
docs: improve migrating to v5 guide
Belco90 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Guide: migrating to v5 | ||
|
||
Assuming you are already in v4, migrating to v5 will be easy. If you are not in v4 yet, we recommend you to follow [the proper guide to migrate to it](docs/migration-guides/v4.md). | ||
|
||
## Overview | ||
|
||
- Support for ESLint v8 | ||
- Drop support for Node v10 - required node version is now `^12.22.0 || ^14.17.0 || >=16.0.0`. Node v10 was EOL'd in April 2021, and ESLint v8 dropped support for it too. | ||
- Update dependencies | ||
- `no-debug` is now called `no-debugging-utils` | ||
- `no-render-in-setup` is now enabled by default in the Angular, React & Vue configs | ||
- `no-unnecessary-act`'s `isStrict` option is now `true` by default | ||
- `no-unnecessary-act` is now enabled by default in the React config | ||
- `no-wait-for-multiple-assertions` is now enabled by default in all configs | ||
- `no-wait-for-side-effects` is now enabled by default in all configs | ||
- `no-wait-for-snapshot` is now enabled by default in all configs | ||
- `prefer-presence-queries` is now enabled by default in all configs | ||
- `prefer-query-by-disappearance` is now enabled by default in all configs | ||
|
||
## Steps to upgrade | ||
|
||
- `eslint-plugin-testing-library` supports both ESLint v7 and v8, so you are fine with either version | ||
- Make sure you are using a compatible Node version, and update it if it's not the case | ||
- Rename `testing-library/no-debug` to `testing-library/no-debugging-utils` if you were referencing it manually somewhere | ||
- Be aware of new rules enabled in Shared Configs which can lead to new reported errors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.