Skip to content

babel/eslint parser failing with ESLint 10 #17791

@brettz9

Description

@brettz9

💻

  • Would you like to work on a fix?

How are you using Babel?

@babel/eslint-parser

Input code

import babelParser from "@babel/eslint-parser";

export default [
  {
    files: ["**/*.js"],
    languageOptions: {
      parser: babelParser,
    }
  }
];

Configuration file name

No response

Configuration

{}

Current and expected behavior

With ESLint 10, getting the error:

TypeError: scopeManager.addGlobals is not a function

Expect no errors.

Environment

  • Babel version: 7.29.0
  • Node: 22.16.0
  • npm/Yarn version: 11.8.0
  • OS: MacOS 26.2
  • Monorepo: no

Possible solution

Fix @nicolo-ribaudo/eslint-scope-5-internals@5.1.1-v1 to use higher eslint-scope dependency and include ESLint 10 in peerDependencies

Additional context

We're actually trying to update eslint-plugin-jsdoc to support ESLint 10 but would depend on @babel/eslint-parser working with ESLint 10 in our tests.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions