Skip to content

Upgrade ESLint to version 9#6

Merged
jmlweb merged 2 commits intomainfrom
claude/upgrade-eslint-v9-011CUpZ8RUD8vgNJvtb9XzUg
Nov 5, 2025
Merged

Upgrade ESLint to version 9#6
jmlweb merged 2 commits intomainfrom
claude/upgrade-eslint-v9-011CUpZ8RUD8vgNJvtb9XzUg

Conversation

@jmlweb
Copy link
Copy Markdown
Owner

@jmlweb jmlweb commented Nov 5, 2025

Note

Migrates to ESLint 9 flat config, updates TypeScript/Prettier plugins and related deps, and removes legacy ESLint config.

  • Tooling:
    • ESLint Flat Config: Replace legacy ./.eslintrc.js with eslint.config.mjs, integrating @eslint/js, typescript-eslint, eslint-config-prettier, eslint-plugin-prettier, eslint-plugin-simple-import-sort, eslint-plugin-tsdoc, and globals.
    • Upgrades: Bump eslint to v9 and update related linting packages; add eslint-formatter-unix.
  • Code:
    • Minor cleanup in src/memoize/memoize.ts (remove obsolete inline ESLint directive).

Written by Cursor Bugbot for commit 8254c6c. This will update automatically on new commits. Configure here.

- Upgrade eslint from ^8.57.0 to ^9.39.1
- Migrate from .eslintrc.js to flat config (eslint.config.mjs)
- Add required ESLint v9 dependencies (@eslint/js, typescript-eslint)
- Add eslint-formatter-unix package for unix format support
- Remove unused eslint-disable directive from memoize.ts
- Verify all tests and linting pass successfully
- Install globals package and refactor eslint.config.mjs to use it
- Replace manual globals definition with globals.node and globals.es2021
- Upgrade eslint-config-prettier: 9.1.0 → 10.1.8
- Upgrade eslint-plugin-prettier: 5.1.3 → 5.5.4
- Upgrade eslint-plugin-simple-import-sort: 10.0.0 → 12.1.1
- Upgrade eslint-plugin-tsdoc: 0.2.17 → 0.4.0
- Upgrade prettier: 3.3.2 → 3.6.2
- Verify all tests and linting pass successfully
@jmlweb jmlweb merged commit b4ff57d into main Nov 5, 2025
3 checks passed
Copy link
Copy Markdown
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

This is the final PR Bugbot will review for you during this billing cycle

Your free Bugbot reviews will reset on December 13

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

'tsdoc/syntax': 'warn',
},
},
];
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.

Bug: Explicit ignores needed in ESLint 9 flat config

The new ESLint 9 flat config is missing an ignores configuration. ESLint 9 does not automatically respect .eslintignore files - ignores must be explicitly configured in the flat config. Without this, ESLint will attempt to lint files in dist/, node_modules/, coverage/, and other build artifacts, which can cause errors or significantly slow down linting. The configuration should include an ignores array, e.g., { ignores: ['dist/**', 'coverage/**', 'node_modules/**', 'docs/**', '**/*.js', '**/*.mjs', '**/*.cjs'] } as a separate config object at the beginning of the array.

Fix in Cursor Fix in Web

@github-actions
Copy link
Copy Markdown

🎉 This issue has been resolved in version 1.11.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants