Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the repo’s linting toolchain to ESLint 10 and applies the associated code tweaks needed to satisfy the newer rules and typings.
Changes:
- Bump ESLint and related lint dependencies (plus lockfile refresh).
- Add
Errorcausechaining in several throw sites to preserve original error context. - Adjust TypeScript build libs to include ES2022 typings needed by the new patterns.
Reviewed changes
Copilot reviewed 11 out of 12 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tsconfig.build.json | Adds ES2022/DOM libs to support newer standard library typings (e.g., Error options). |
| package.json | Bumps eslint, @eslint/js, @typescript-eslint/*, @vitest/eslint-plugin versions. |
| pnpm-lock.yaml | Lockfile updates reflecting the dependency bumps and peer resolutions. |
| eslint-rules/enforce-zod-v4.js | Updates custom rule to use the new ESLint context filename access. |
| tests/integration/transports/configOverrides.test.ts | Updates test error rethrows to include { cause } for better diagnostics. |
| src/tools/mongodb/update/updateMany.ts | Adjusts message initialization to satisfy stricter lint/TS checks. |
| src/setup/aiTool.ts | Adds { cause } when rethrowing config write failures. |
| src/server.ts | Adds { cause } for connection-string / apiBaseUrl validation failures. |
| src/helpers/connectionOptions.ts | Adds { cause } for connection-string validation errors. |
| src/common/atlas/performanceAdvisorUtils.ts | Adds { cause } when rethrowing Atlas Performance Advisor request failures. |
| src/common/atlas/cluster.ts | Adds { cause } when rethrowing cluster processId retrieval failures. |
| scripts/generate/generateToolDocumentation.ts | Adds { cause } when tool instantiation fails during doc generation. |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
Bumps eslint to 10.x and addresses the issues flagged by the new rules.