Skip to content

chore: update eslint and eslint-config-eslint#737

Merged
nzakas merged 4 commits intomainfrom
chore/update-eslint-and-eslint-config-eslint
Mar 9, 2026
Merged

chore: update eslint and eslint-config-eslint#737
nzakas merged 4 commits intomainfrom
chore/update-eslint-and-eslint-config-eslint

Conversation

@lumirlumir
Copy link
Member

@lumirlumir lumirlumir commented Mar 7, 2026

Prerequisites checklist

AI acknowledgment

  • I did not use AI to generate this PR.
  • (If the above is not checked) I have reviewed the AI-generated content before submitting.

What is the purpose of this pull request?

This PR replaces #736.

In #736, two issues caused the CI to fail.

First, an ESLint comment related to jsdoc contained a TODO to remove it once a new jsdoc plugin version is released.

Second, the ES target in tsconfig caused a problem. The #private member in @eslint/plugin-kit triggered a type error. I'm not entirely sure why this unrelated dependency caused the error, but I resolved it by changing the target from es5 to es6. I verified that the generated .d.ts and .d.cts files are unchanged, so updating the target appears safe. (I also checked the #private keyword in @eslint/plugin-kit; it has existed since the initial version and wasn't introduced in the new release.)

What changes did you make? (Give an overview)

This PR updates eslint and eslint-config-eslint to the latest.

Related Issues

Ref: #736

Is there anything you'd like reviewers to focus on?

N/A

@lumirlumir lumirlumir marked this pull request as ready for review March 7, 2026 05:31
Copilot AI review requested due to automatic review settings March 7, 2026 05:31
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the repo’s linting toolchain to ESLint v10 and the corresponding eslint-config-eslint v14, and adjusts a couple of repository files to keep CI/lint/type generation working with the new versions (notably removing now-unnecessary jsdoc/valid-types disables and aligning Espree’s declaration-build TS target).

Changes:

  • Bump devDependencies: eslint to ^10.0.3, eslint-config-eslint to ^14.0.0, and @typescript-eslint/parser to ^8.56.1.
  • Update Espree’s type-generation tsconfig targets from es5 to es6 to avoid type issues caused by downstream .d.ts generation.
  • Remove eslint-disable/enable jsdoc/valid-types blocks that were previously workarounds for older JSDoc/type parsing behavior.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/espree/tsconfig.json Bumps TS target to es6 for declaration generation to avoid type errors triggered by newer dependencies.
packages/espree/tsconfig-cjs.json Same target bump for the CJS declaration build.
packages/espree/lib/types.js Removes jsdoc/valid-types disable/enable comments that should no longer be needed with the updated lint stack.
packages/eslint-visitor-keys/lib/visitor-keys.js Removes the jsdoc/valid-types disable/enable wrapper around the readonly JSDoc type.
packages/eslint-visitor-keys/lib/index.js Removes the jsdoc/valid-types disable/enable wrapper around JSDoc types.
package.json Updates ESLint-related devDependencies to the requested versions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Copy link
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks.

@nzakas nzakas merged commit 8925ecd into main Mar 9, 2026
23 checks passed
@nzakas nzakas deleted the chore/update-eslint-and-eslint-config-eslint branch March 9, 2026 20:50
@github-project-automation github-project-automation bot moved this from Needs Triage to Complete in Triage Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Complete

Development

Successfully merging this pull request may close these issues.

3 participants