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

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

Closed
enablonian opened this issue May 2, 2024 · 1 comment

Comments

@enablonian
Copy link

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)
@ljharb
Copy link
Member

ljharb commented May 2, 2024

This plugin does not yet support flat config. See #2873

@ljharb ljharb closed this as not planned Won't fix, can't repro, duplicate, stale May 2, 2024
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