Skip to content

Conversation

@marcoscaceres
Copy link
Contributor

Closes #5018

@netlify
Copy link

netlify bot commented Aug 6, 2025

Deploy Preview for respec-pr ready!

Name Link
🔨 Latest commit 19315bb
🔍 Latest deploy log https://app.netlify.com/projects/respec-pr/deploys/6892fbfe45b7fa000848f2ba
😎 Deploy Preview https://deploy-preview-5030--respec-pr.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@marcoscaceres marcoscaceres requested review from Copilot and sidvishnoi and removed request for Copilot August 6, 2025 06:57
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 ESLint from version 8.57.1 to 9.32.0, which is a major version upgrade requiring migration from the legacy .eslintrc.json configuration to the new flat configuration format (eslint.config.mjs).

  • Migrates from legacy ESLint configuration format to the new flat config system
  • Removes unnecessary ESLint disable comments that are no longer needed with the new version
  • Fixes a logical bug in the before-save.js file where the || operator was incorrectly used

Reviewed Changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
package.json Updates ESLint to v9.32.0 and adds required compatibility packages
eslint.config.mjs New flat configuration file replacing the legacy .eslintrc.json
.eslintrc.json Removes the legacy ESLint configuration file
src/core/before-save.js Fixes logical operator bug from `
tests/support-files/hljs-testlang.js Removes unnecessary eslint-disable comment
tests/spec/core/webidl-spec.js Removes unnecessary eslint-disable comments
tests/spec/SpecHelper.js Removes unnecessary eslint-disable comment
src/w3c/templates/sotd.js Removes unnecessary eslint-disable comment
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

});

export default defineConfig([
globalIgnores(["builds/**/*", "js/**/*", "tests/**/*", "eslint.config.mjs"]),
Copy link

Copilot AI Aug 6, 2025

Choose a reason for hiding this comment

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

In ESLint flat config, global ignores should be specified using the ignores property in a configuration object, not as a function call. The correct format would be: { ignores: ["builds/**/*", "js/**/*", "tests/**/*", "eslint.config.mjs"] }

Suggested change
globalIgnores(["builds/**/*", "js/**/*", "tests/**/*", "eslint.config.mjs"]),
{ ignores: ["builds/**/*", "js/**/*", "tests/**/*", "eslint.config.mjs"] },

Copilot uses AI. Check for mistakes.
"eslint:recommended",
"plugin:prettier/recommended"
),

Copy link

Copilot AI Aug 6, 2025

Choose a reason for hiding this comment

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

The extends property is not valid in ESLint flat config. The compat.extends() result should be spread directly into the configuration array using the spread operator: ...compat.extends(...)

Suggested change
...compat.extends(
"eslint:recommended",
"plugin:prettier/recommended"
),
{

Copilot uses AI. Check for mistakes.
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.

2 participants