Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

eslint 9 error #7

Closed
Goldziher opened this issue Aug 1, 2024 · 7 comments
Closed

eslint 9 error #7

Goldziher opened this issue Aug 1, 2024 · 7 comments

Comments

@Goldziher
Copy link

Oops! Something went wrong! :(

ESLint: 9.8.0

A config object is using the "extends" key, which is not supported in flat config system.

Instead of "extends", you can include config objects that you'd like to extend from directly in the flat config array.

If you're using "extends" in your config file, please see the following:
https://eslint.org/docs/latest/use/configure/migration-guide#predefined-and-shareable-configs

If you're not using "extends" directly (it may be coming from a plugin), please see the following:
https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config
@ftzi
Copy link
Owner

ftzi commented Aug 2, 2024

Thnx.

At the bottom, there is this link with a workaround: https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config

I don't know if I should release a new version where it uses the flat config by default. I am not aware of how is the adoption of the flat config by the devs is going.

Maybe, what I can do is to have a file for flat config users.

@Goldziher
Copy link
Author

flat config is now the norm. Eslint 9 removed the older style of configs.

There are libraries that support both types etc.

@ftzi
Copy link
Owner

ftzi commented Aug 2, 2024

Ty for the info. Can you please provide me a lib example which supports both? So I can know what's being the current pattern.

@Goldziher
Copy link
Author

@ftzi
Copy link
Owner

ftzi commented Aug 2, 2024

Awesome. Thanks a lot! I will work on it asap.

@Stanzilla
Copy link

ah came here to report the same, glad to see it is already being worked on, cheers!

@ftzi
Copy link
Owner

ftzi commented Sep 7, 2024

Hi, sorry for the delay. While I haven't been able to reproduce this locally with ESLint 9.10.0, the new v1.8.3 should fix your issue as I got rid of the extends: b69ccd7. Please reopen if you have further issues.

@ftzi ftzi closed this as completed Sep 7, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants