Skip to content

deps(NODE-6940): FY26Q2 lint-related dependency updates #4527

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2066,8 +2066,7 @@ tasks:
type: setup
params:
updates:
- {key: NODE_LTS_VERSION, value: '16'}
- {key: NPM_VERSION, value: '9'}
- {key: NODE_LTS_VERSION, value: '22'}
- func: install dependencies
- func: run lint checks
- name: run-resource-management-no-async-dispose
Expand Down
3 changes: 1 addition & 2 deletions .evergreen/generate_evergreen_tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,7 @@ SINGLETON_TASKS.push(
tags: ['lint-checks'],
commands: [
updateExpansions({
NODE_LTS_VERSION: LOWEST_LTS,
NPM_VERSION: 9
NODE_LTS_VERSION: LATEST_LTS
}),
{ func: 'install dependencies' },
{ func: 'run lint checks' }
Expand Down
8,094 changes: 1,198 additions & 6,896 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@
"@types/sinon": "^17.0.4",
"@types/sinon-chai": "^4.0.0",
"@types/whatwg-url": "^13.0.0",
"@typescript-eslint/eslint-plugin": "8.4.0",
"@typescript-eslint/parser": "8.4.0",
"@typescript-eslint/eslint-plugin": "^8.31.1",
"@typescript-eslint/parser": "^8.31.1",
"chai": "^4.4.1",
"chai-subset": "^1.6.0",
"chalk": "^4.1.2",
"eslint": "9.9.0",
"eslint-config-prettier": "^9.1.0",
"eslint": "^9.25.1",
"eslint-config-prettier": "^10.1.2",
"eslint-plugin-mocha": "^10.4.1",
"eslint-plugin-prettier": "^5.2.3",
"eslint-plugin-simple-import-sort": "^12.1.1",
Expand Down Expand Up @@ -175,4 +175,4 @@
"moduleResolution": "node"
}
}
}
}
2 changes: 1 addition & 1 deletion src/client-side-encryption/state_machine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ export class StateMachine {
// See docs on EMPTY_V
result = EMPTY_V ??= serialize({ v: [] });
}
for await (const key of keys) {
for (const key of keys) {
context.addMongoOperationResponse(serialize(key));
}

Expand Down
2 changes: 1 addition & 1 deletion src/cmap/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ export class CryptoConnection extends Connection {
ns: MongoDBNamespace,
cmd: Document,
options?: CommandOptions,
responseType?: T | undefined
responseType?: T
): Promise<Document> {
const { autoEncrypter } = this;
if (!autoEncrypter) {
Expand Down
2 changes: 1 addition & 1 deletion src/cmap/wire_protocol/on_demand/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ export class OnDemandDocument {
public get<const T extends keyof JSTypeOf>(
name: string | number,
as: T,
required?: boolean | undefined
required?: boolean
): JSTypeOf[T] | null;

/** `required` will make `get` throw if name does not exist or is null/undefined */
Expand Down
4 changes: 2 additions & 2 deletions src/cmap/wire_protocol/responses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class MongoDBResponse extends OnDemandDocument {
public override get<const T extends keyof JSTypeOf>(
name: string | number,
as: T,
required?: false | undefined
required?: false
): JSTypeOf[T] | null;
public override get<const T extends keyof JSTypeOf>(
name: string | number,
Expand All @@ -87,7 +87,7 @@ export class MongoDBResponse extends OnDemandDocument {
public override get<const T extends keyof JSTypeOf>(
name: string | number,
as: T,
required?: boolean | undefined
required?: boolean
): JSTypeOf[T] | null {
try {
return super.get(name, as, required);
Expand Down
1 change: 1 addition & 0 deletions src/connection_string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,7 @@ function setOption(
if (values[0] == null) {
break;
}
// eslint-disable-next-line @typescript-eslint/no-base-to-string
mongoOptions[name] = String(values[0]);
break;
case 'record':
Expand Down
1 change: 0 additions & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-unnecessary-type-assertion */
export const SYSTEM_NAMESPACE_COLLECTION = 'system.namespaces';
export const SYSTEM_INDEX_COLLECTION = 'system.indexes';
export const SYSTEM_PROFILE_COLLECTION = 'system.profile';
Expand Down
1 change: 0 additions & 1 deletion src/operations/aggregate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { type CollationOptions, CommandOperation, type CommandOperationOptions }
import { Aspect, defineAspects, type Hint } from './operation';

/** @internal */
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
export const DB_AGGREGATE_COLLECTION = 1 as const;
const MIN_WIRE_VERSION_$OUT_READ_CONCERN_SUPPORT = 8;

Expand Down
Loading