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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support "Flat Config" (ESLint 9) #30

Open
Tracked by #18093
JoshuaKGoldberg opened this issue Feb 13, 2024 · 0 comments
Open
Tracked by #18093

Support "Flat Config" (ESLint 9) #30

JoshuaKGoldberg opened this issue Feb 13, 2024 · 0 comments

Comments

@JoshuaKGoldberg
Copy link

JoshuaKGoldberg commented Feb 13, 2024

馃憢 Coming over from eslint/eslint#18093: ESLint is migrating to a new "flat config" format that will be the default in ESLint v9.

I tried this extension out in a repository with the new eslint.config.js (https://github.com/eslint/create-config) and got an error for a configuration not found:

/Users/josh/repos/create-config/node_modules/eslint/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:4000
            throw new ConfigurationNotFoundError(directoryPath);
                  ^

ConfigurationNotFoundError: No ESLint configuration found in /Users/josh/repos/create-config/lib/shared.
    at CascadingConfigArrayFactory._finalizeConfigArray (/Users/josh/repos/create-config/node_modules/eslint/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:4000:19)
    at CascadingConfigArrayFactory.getConfigArrayForFile (/Users/josh/repos/create-config/node_modules/eslint/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3791:21)
    ...

I'm posting this issue here as a reference & cross-linking it to the table in eslint/eslint#18093. If there's anything blocking the extension from supporting flat configs, please let us know - we'd be happy to try to help! 馃挏

Additional resources:

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

1 participant