Skip to content

Upgrade eslint to v10 and mocha - #29

Merged
gracepark merged 2 commits into
masterfrom
gp/upgrade-mocha-eslint
Jul 29, 2026
Merged

Upgrade eslint to v10 and mocha#29
gracepark merged 2 commits into
masterfrom
gp/upgrade-mocha-eslint

Conversation

@gracepark

Copy link
Copy Markdown
Contributor

Fixes: https://github.com/github/vuln-mgmt/issues/222630

This allows us to upgrade js-yaml. I had to upgrade eslint to v10, flat config, etc.

Note that Mocha’s mocha@12.0.0-rc.5 now declares js-yaml: ^5.0.0 but the current stable whose still declares ^4.1.0 which is why I added the override. Once v12 becomes stable, we won't need the override.

Copilot AI review requested due to automatic review settings July 29, 2026 16:12
@gracepark
gracepark requested a review from a team as a code owner July 29, 2026 16:12
@gracepark
gracepark requested a review from arelia July 29, 2026 16:12
@gracepark gracepark self-assigned this Jul 29, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Upgrades linting and test dependencies to support a secure js-yaml release and ESLint flat configuration.

Changes:

  • Upgrades ESLint, its GitHub plugin, and Mocha.
  • Migrates ESLint configuration to flat config.
  • Overrides Mocha’s transitive js-yaml version.
Show a summary per file
File Description
eslint.config.js Defines equivalent flat ESLint configuration and test globals.
package.json Updates dependencies and adds the js-yaml override.
package-lock.json Locks the updated dependency graph.

Review details

Tip

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

  • Files reviewed: 2/3 changed files
  • Comments generated: 0
  • Review effort level: Medium

Comment thread eslint.config.js Outdated

@jibrang jibrang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just a nit comment, otherwise LGTM

@gracepark
gracepark merged commit f6a4491 into master Jul 29, 2026
5 checks passed
@gracepark
gracepark deleted the gp/upgrade-mocha-eslint branch July 29, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants