Skip to content

Commit 6a35701

Browse files
deps(NODE-6940): FY26Q2 lint-related dependency updates (#4527)
Co-authored-by: Durran Jordan <[email protected]>
1 parent ae61756 commit 6a35701

File tree

11 files changed

+1208
-6896
lines changed

11 files changed

+1208
-6896
lines changed

.evergreen/config.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2066,8 +2066,7 @@ tasks:
20662066
type: setup
20672067
params:
20682068
updates:
2069-
- {key: NODE_LTS_VERSION, value: '16'}
2070-
- {key: NPM_VERSION, value: '9'}
2069+
- {key: NODE_LTS_VERSION, value: '22'}
20712070
- func: install dependencies
20722071
- func: run lint checks
20732072
- name: run-resource-management-no-async-dispose

.evergreen/generate_evergreen_tasks.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,7 @@ SINGLETON_TASKS.push(
529529
tags: ['lint-checks'],
530530
commands: [
531531
updateExpansions({
532-
NODE_LTS_VERSION: LOWEST_LTS,
533-
NPM_VERSION: 9
532+
NODE_LTS_VERSION: LATEST_LTS
534533
}),
535534
{ func: 'install dependencies' },
536535
{ func: 'run lint checks' }

package-lock.json

Lines changed: 1195 additions & 6880 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@
7979
"@types/sinon": "^17.0.4",
8080
"@types/sinon-chai": "^4.0.0",
8181
"@types/whatwg-url": "^13.0.0",
82-
"@typescript-eslint/eslint-plugin": "8.4.0",
83-
"@typescript-eslint/parser": "8.4.0",
82+
"@typescript-eslint/eslint-plugin": "^8.31.1",
83+
"@typescript-eslint/parser": "^8.31.1",
8484
"chai": "^4.4.1",
8585
"chai-subset": "^1.6.0",
8686
"chalk": "^4.1.2",
87-
"eslint": "9.9.0",
88-
"eslint-config-prettier": "^9.1.0",
87+
"eslint": "^9.25.1",
88+
"eslint-config-prettier": "^10.1.2",
8989
"eslint-plugin-mocha": "^10.4.1",
9090
"eslint-plugin-prettier": "^5.2.3",
9191
"eslint-plugin-simple-import-sort": "^12.1.1",
@@ -175,4 +175,4 @@
175175
"moduleResolution": "node"
176176
}
177177
}
178-
}
178+
}

src/client-side-encryption/state_machine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ export class StateMachine {
275275
// See docs on EMPTY_V
276276
result = EMPTY_V ??= serialize({ v: [] });
277277
}
278-
for await (const key of keys) {
278+
for (const key of keys) {
279279
context.addMongoOperationResponse(serialize(key));
280280
}
281281

src/cmap/connection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ export class CryptoConnection extends Connection {
864864
ns: MongoDBNamespace,
865865
cmd: Document,
866866
options?: CommandOptions,
867-
responseType?: T | undefined
867+
responseType?: T
868868
): Promise<Document> {
869869
const { autoEncrypter } = this;
870870
if (!autoEncrypter) {

src/cmap/wire_protocol/on_demand/document.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ export class OnDemandDocument {
262262
public get<const T extends keyof JSTypeOf>(
263263
name: string | number,
264264
as: T,
265-
required?: boolean | undefined
265+
required?: boolean
266266
): JSTypeOf[T] | null;
267267

268268
/** `required` will make `get` throw if name does not exist or is null/undefined */

src/cmap/wire_protocol/responses.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class MongoDBResponse extends OnDemandDocument {
7777
public override get<const T extends keyof JSTypeOf>(
7878
name: string | number,
7979
as: T,
80-
required?: false | undefined
80+
required?: false
8181
): JSTypeOf[T] | null;
8282
public override get<const T extends keyof JSTypeOf>(
8383
name: string | number,
@@ -87,7 +87,7 @@ export class MongoDBResponse extends OnDemandDocument {
8787
public override get<const T extends keyof JSTypeOf>(
8888
name: string | number,
8989
as: T,
90-
required?: boolean | undefined
90+
required?: boolean
9191
): JSTypeOf[T] | null {
9292
try {
9393
return super.get(name, as, required);

src/connection_string.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,7 @@ function setOption(
605605
if (values[0] == null) {
606606
break;
607607
}
608+
// eslint-disable-next-line @typescript-eslint/no-base-to-string
608609
mongoOptions[name] = String(values[0]);
609610
break;
610611
case 'record':

src/constants.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/no-unnecessary-type-assertion */
21
export const SYSTEM_NAMESPACE_COLLECTION = 'system.namespaces';
32
export const SYSTEM_INDEX_COLLECTION = 'system.indexes';
43
export const SYSTEM_PROFILE_COLLECTION = 'system.profile';

src/operations/aggregate.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { type CollationOptions, CommandOperation, type CommandOperationOptions }
1212
import { Aspect, defineAspects, type Hint } from './operation';
1313

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

0 commit comments

Comments
 (0)