import-js / eslint-plugin-import

ESLint plugin with rules that help validate proper imports.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

missing guard case in `getParserPath` with flat config format

error-four-o-four opened this issue · comments

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?

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