Skip to content

Upgrade eslint 9.x#539

Merged
sorenlouv merged 8 commits intomainfrom
upgrade-eslint-9.x
Jun 14, 2025
Merged

Upgrade eslint 9.x#539
sorenlouv merged 8 commits intomainfrom
upgrade-eslint-9.x

Conversation

@sorenlouv
Copy link
Copy Markdown
Owner

@sorenlouv sorenlouv commented Jun 14, 2025

This PR upgrades ESLint to version 9.x and updates related configurations and dependency versions. It also refactors several import statements to use type-only imports and adjusts some logging and error handling patterns.

  • Converted many regular imports to type-only imports where applicable.
  • Updated dependency versions and ESLint configuration (moving from .eslintrc.js to eslint.config.js).
  • Made minor code refinements in logging and error handling.

@sorenlouv sorenlouv merged commit 0988358 into main Jun 14, 2025
3 checks passed
@sorenlouv sorenlouv deleted the upgrade-eslint-9.x branch June 14, 2025 17:54
@sorenlouv sorenlouv requested a review from Copilot June 14, 2025 17:55
Copy link
Copy Markdown

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 upgrades ESLint to version 9.x and updates related configurations and dependency versions. It also refactors several import statements to use type-only imports and adjusts some logging and error handling patterns.

  • Converted many regular imports to type-only imports where applicable.
  • Updated dependency versions and ESLint configuration (moving from .eslintrc.js to eslint.config.js).
  • Made minor code refinements in logging and error handling.

Reviewed Changes

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

Show a summary per file
File Description
src/lib/cherrypickAndCreateTargetPullRequest/*.ts Refactored imports to use type-only syntax.
src/lib/apm.ts Updated ts-expect-error comments and changed fallback for NODE_ENV.
src/backportRun.ts, src/entrypoint.api.ts, src/lib/author.ts, etc. Updated type-only imports and minor logging improvements.
package.json Upgraded ESLint and related dependencies; added caching to the lint command.
jest.testSequencer.js, jest.config.all.ts Removed custom test sequencer configuration.
eslint.config.js, .eslintrc.js Replaced legacy ESLint configuration with the new file.
.vscode/settings.json, .eslintignore Updated VS Code settings to enable format-on-save and cleaned up ignore patterns.
Comments suppressed due to low confidence (2)

.eslintrc.js:1

  • The removal of .eslintrc.js implies that all ESLint configurations have been migrated to eslint.config.js. Please ensure that any custom rules or configurations previously defined in .eslintrc.js are fully replicated in the new setup.
Entire file removed

src/lib/apm.ts:6

  • The change from a logical OR (||) to nullish coalescing (??) means an empty string for NODE_ENV will no longer trigger the fallback value. Please confirm that an empty string is acceptable, or consider using a fallback that treats empty strings as falsy if that is desired.
const environment = process.env.NODE_ENV ?? 'production-cli';

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