Skip to content

Conversation

@cprussin
Copy link
Contributor

This PR implements updates the eslint dependency to 8.57.0 and fixes the error 'reportUnusedDisableDirectives' has been removed. Please use the 'overrideConfig.linterOptions.reportUnusedDisableDirectives' option instead..

In doing this, I also made the following improvements:

  1. use the new loadESLint function to load ESLint or FlatESLint, rather than using our own logic
  2. refactors the normalizeConfig.js file to have explicit separate config shapes for the legacy config and the flat config. This also removes the need to have the code to deal with invalid config variables that we had here

Note that #1 makes this library incompatible with using the flat config format with eslint < 8.57.0. But I think that's OK given that 1) the flat config was experimental anyways and 2) if someone had a use case for locking eslint < 8.57.0, they could just as easily also lock jest-runner-eslint to v2.1.2. It's technically a breaking change, but I don't think it absolutely must be marked as such.

@cprussin
Copy link
Contributor Author

These failures do not appear to be related to my changes: TypeError: Cannot assign to read only property 'performance' of object '[object global]'. @ljharb any idea what's happening here?

@cprussin
Copy link
Contributor Author

ping @SimenB can I get your help merging & releasing this please? It's a hard blocker for using eslint 8.57.0 with this lib so I'd love to get it out as soon as possible. Thanks in advance!

@SimenB
Copy link
Member

SimenB commented Feb 28, 2024

Seems Node backported to 18.19.0 a change originally in v19 that breaks fake timers in Jest 28. Wonderful...

@SimenB
Copy link
Member

SimenB commented Feb 29, 2024

Ok, just skipped over the broken node+jest combo in #230 - this should pass CI now 🤞

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@SimenB SimenB merged commit 3288ba1 into jest-community:main Feb 29, 2024
@SimenB
Copy link
Member

SimenB commented Feb 29, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants