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

missing guard case in getParserPath with flat config format #2943

Closed
error-four-o-four opened this issue Dec 17, 2023 · 1 comment
Closed

Comments

@error-four-o-four
Copy link

Hey there,

I've run into an issue with the new flat config format: repro

Eslint outputs the error: Parse errors in imported module './test': parserPath or languageOptions.parser is required! (undefined:undefined) which originates from the function getParserPath of the 'eslint-module-utils' package: source

The function returns context.parserPath as a fallback (when the values of import/parsers are invalid). But as far as I can tell context.parserPath is not defined with the new flat config format, right?

@ljharb
Copy link
Member

ljharb commented Dec 17, 2023

We don’t yet support the new flat config format - see #2873.

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

No branches or pull requests

2 participants