Skip to content

Update to current ESLint 10.x before 9.x EOL Aug 2026 #848

@MikeMcC399

Description

@MikeMcC399

Situation

  • The repo is configured for ESLint 9.x
  • ESLint 9.x transitions into EOL on 2026-08-06
  • Linting config is external through "@yarnpkg/eslint-config": "^3.0.0" pinned to @yarnpkg/eslint-config@3.1.0 (current latest, published in Sep 2025)

Assessment

  • @yarnpkg/eslint-config@3.1.0 is not compatible with ESLint 10.x

Attempting an update to ESLint 10.4.0 (current latest) produces an error:

TypeError: Error while loading rule 'arca/import-ordering': context.getSourceCode is not a function

The transient dependency eslint-plugin-arca belonging to @arcanis is outdated. It uses ESLint 7 in its devDependencies EOL 2022-04-09 and it uses the deprecated context.getSourceCode() (Source repo https://github.com/arcanis/eslint-plugin-arca).

Options

  1. Work with Yarn Berry to produce a new release of @yarnpkg/eslint-config, compatible with ESLint 10.x
  2. Remove the external dependency @yarnpkg/eslint-config and create an equivalent ESLint configuration directly into the Corepack repo

Metadata

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