Skip to content
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

Support for ESLint's New Flat Configs #830

Open
tthornton3-chwy opened this issue Nov 6, 2023 · 10 comments
Open

Support for ESLint's New Flat Configs #830

tthornton3-chwy opened this issue Nov 6, 2023 · 10 comments

Comments

@tthornton3-chwy
Copy link

Available in newer versions of ESLint, and will be required in the future, there's a new configuration structure! You can find the context here: https://eslint.org/docs/latest/use/configure/configuration-files-new

While there does exist a utility (https://www.raulmelo.me/en/blog/migration-eslint-to-flat-config#official-utility-for-the-rescue) to convert between the two, it's a bit gross, and I didn't have much luck with it properly loading in the overrides.

We were using the https://github.com/google/gts#working-with-eslint aspect of this in a few of our repos! And I wound up essentially making my own using the same rules over in the new style.

Thanks for your time, and your support!

@tonycoco
Copy link
Contributor

Happy to review a PR if someone wants to convert the existing RC to the new config style.

@jdugas
Copy link

jdugas commented May 10, 2024

Eslint has deprecated the use of config files that are not the new flat configs.
config files deprecated

@tonycoco
Copy link
Contributor

Working on the flat config for the next release

@tthornton3-chwy
Copy link
Author

tthornton3-chwy commented Jun 12, 2024

Thanks Tony :) Happy to test anything then. I've moved away from it for now, but I can make sure to come back and help look at it.

@tonycoco
Copy link
Contributor

#886 Gets pretty close but we will need to wait for Node 14/16 deprecation to bump ESlint versions. Might be able to do it without that package change. I'll take a better look as soon as I have time.

@mp3por
Copy link

mp3por commented Oct 2, 2024

When will we get this ?

@evil-shrike
Copy link

Hi.
It seems ESLint deprecated all old versions - https://eslint.org/version-support
And now only v9.x with the flat config are the only supported. It'd great to see gts migrating onto the new ESLint.
Thanks.

@mjkeaton
Copy link

This currently prevents using gts. Is there any plans to upgrade to eslint v9? Rough estimate is highly appreciated 🙏
As @evil-shrike mentioned all versions <= v9 are EOL sinc 2024-10-05.

@jeromy-cannon
Copy link

Is this project still active? is there an alternative project that does something similar that works with eslint 9.x?

@jeromy-cannon
Copy link

@tonycoco , looks like NodeJS 14/16 are status = 'End-of-Life': https://github.com/nodejs/Release

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

No branches or pull requests

8 participants