Skip to content

ESLint: Parse errors in imported module 'foo': parserPath or languageOptions.parser is required! (undefined:undefined)(import/namespace) #3005

Closed as not planned
@enablonian

Description

I am using flat config with the following:

import jslint from "@eslint/js"
import pluginImport from "eslint-plugin-import"
import globals from "globals"
import tslint from "typescript-eslint"

export default [
  {
    languageOptions: {
      globals: globals.node,
      ecmaVersion: "latest",
      sourceType: "module"
    }
  },
  jslint.configs.recommended,
  ...tslint.configs.recommended,
  {
    files: ["**/*.@(js|ts|tsx)"],
    plugins: {
      "import": pluginImport,
    },
    rules: {
      ...pluginImport.configs.recommended.rules,
      ...pluginImport.configs.typescript.rules,
    }
  },
  recommendedPrettier
]

This produces the following error:

ESLint: Parse errors in imported module 'typescript-eslint': parserPath or languageOptions.parser is required! (undefined:undefined)(import/namespace)

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