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.
- 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-debugis now calledno-debugging-utilsno-render-in-setupis now enabled by default in the Angular, React & Vue configsno-unnecessary-act'sisStrictoption is nowtrueby defaultno-unnecessary-actis now enabled by default in the React configno-wait-for-multiple-assertionsis now enabled by default in all configsno-wait-for-side-effectsis now enabled by default in all configsno-wait-for-snapshotis now enabled by default in all configsprefer-presence-queriesis now enabled by default in all configsprefer-query-by-disappearanceis now enabled by default in all configs
eslint-plugin-testing-librarysupports both ESLint v7 and v8, so you are fine with either version- Making sure you are using a compatible Node version (
^12.22.0 || ^14.17.0 || >=16.0.0), and update it if it's not the case - Renaming
testing-library/no-debugtotesting-library/no-debugging-utilsif you were referencing it manually somewhere - Being aware of new rules enabled in Shared Configs which can lead to new reported errors