Skip to content

missing guard case in getParserPath with flat config format #2943

Closed
@error-four-o-four

Description

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?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions