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

eslint new config spec support #2699

Open
varunkumar opened this issue Dec 27, 2022 · 5 comments
Open

eslint new config spec support #2699

varunkumar opened this issue Dec 27, 2022 · 5 comments

Comments

@varunkumar
Copy link

What is the correct way to use eslint-config-airbnb in the new config spec?

@ljharb
Copy link
Collaborator

ljharb commented Dec 27, 2022

I'm not sure if there is one yet. l We use 4 eslint plugins, and only 1 of the 4 (perhaps 2) have that support yet, so we couldn't even attempt it until then.

@varunkumar
Copy link
Author

varunkumar commented Dec 29, 2022

I have used the FlatCompat class to use the existing config.

@mdjermanovic
Copy link

@ljharb how would you prefer eslint-config-airbnb to provide support for the new config format - by updating the existing exports to the new format (breaking change, the new format cannot be used from eslintrc config files) or by adding new, separate exports?

@ljharb
Copy link
Collaborator

ljharb commented Jul 15, 2023

@mdjermanovic definitely not the breaking change. Can it support it yet tho if the dependent plugins don’t?

@alexeyr-ci
Copy link

alexeyr-ci commented Dec 1, 2023

@ljharb The import plugin doesn't support it fully, but as far as I understand, including import/parsers in settings on your side as in import-js/eslint-plugin-import#2556 (comment) would resolve the main issue. import/no-unused-modules doesn't work, see the discussion here import-js/eslint-plugin-import#2829, but it is disabled in airbnb config anyway. Still, waiting until it figures out full support may be better.

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

No branches or pull requests

4 participants