-
Notifications
You must be signed in to change notification settings - Fork 604
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
[eslint-patch] Upgrade to ESLint 9 #4635
Comments
I'm pretty sure there are a bunch of breaking changes in ESLint 9, so this may take some effort. If someone wants to take that on, we'd happily take it. For now, it'll be a lower priority for our team. |
Even with recent fixup https://eslint.org/blog/2024/05/eslint-compatibility-utilities/ it fails:
Just in case this helps... The fixup works with configs (actual objects returned from config), and eslint-patch is usually called inside config. It might be useful to just disable some functionality if ESLint 9 is detected... |
Thanks @nzakas for prompt response and fix. I assume we now have to wait for release and propagation to other packages like Next.js rules set? |
@kirill-konshin yes. Publish is manually triggered. You can either choose to wait for the next publish, or you can request a publish from one of the senior maintainers. |
Same for me |
@D4N14L was it published? I'm getting the same error #4965 (comment) but with shareable config. |
@kirill-konshin yes it is published, though I don't know if support for shareable configs requires any additional work. Could you share a repro? |
@D4N14L sure, here you go: https://codesandbox.io/p/devbox/nqs2yk?file=%2Feslint.config.mjs Just run The problem is interference with newer Yarn it seems. Also I purposely made it a monorepo. Here's with the Yarn 1: https://stackblitz.com/edit/stackblitz-starters-zxpfgk?file=eslint.config.mjs,package.json It does not reproduce there directly, but if you download a zip and run
Then it will fail. |
@D4N14L any chances to have this fixed? Can I help? |
@kirill-konshin to be honest I don't think I'll be able to look any time soon. If you can create a fix or investigate a fix, that would be appreciated. |
@D4N14L I don't really think I can, since the error originates from the module resolution patch and Yarn's BUT! On a positive side, I've just tested my custom config with Yarn's So in addition to my reproduction scenario before, I can reliably say it works well with Yarn 1 and Yarn 2+ with |
@kirill-konshin nice! So then seems possibly an issue with pnp compatibility in ESLint instead of anything that we have done. Glad to hear :) |
Not PNP but original |
Ah interesting. Then possibly an issue with shadow dependencies given that PNPM brings more dependency correctness with its algorithm |
ESLint v9.0.0 is released 🎉
It would be awesome to have official ESLint 9 support. 🙂
The text was updated successfully, but these errors were encountered: