Skip to content

Commit

Permalink
devdeps(@typescript-eslint/*): upgrade to version 6.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hasezoey committed Jun 5, 2024
1 parent 329d79e commit b4055a7
Show file tree
Hide file tree
Showing 6 changed files with 107 additions and 127 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"@commitlint/config-conventional": "17.8.1",
"@types/jest": "^29.5.12",
"@types/node": "~16.11.7",
"@typescript-eslint/eslint-plugin": "5.59.9",
"@typescript-eslint/parser": "5.59.9",
"@typescript-eslint/eslint-plugin": "6.21.0",
"@typescript-eslint/parser": "6.21.0",
"commitlint": "17.8.1",
"cross-env": "7.0.3",
"doctoc": "2.2.1",
Expand Down
2 changes: 2 additions & 0 deletions packages/mongodb-memory-server-core/src/MongoMemoryReplSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ export enum MongoMemoryReplSetEvents {
stateChange = 'stateChange',
}

// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
export interface MongoMemoryReplSet extends EventEmitter {
// Overwrite EventEmitter's definitions (to provide at least the event names)
emit(event: MongoMemoryReplSetEvents, ...args: any[]): boolean;
Expand All @@ -150,6 +151,7 @@ export interface MongoMemoryReplSet extends EventEmitter {
/**
* Class for managing an replSet
*/
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
export class MongoMemoryReplSet extends EventEmitter implements ManagerAdvanced {
/**
* All servers this ReplSet instance manages
Expand Down
2 changes: 2 additions & 0 deletions packages/mongodb-memory-server-core/src/MongoMemoryServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,15 @@ export interface MongoMemoryServerGetStartOptions {
mongodOptions: Partial<MongodOpts>;
}

// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
export interface MongoMemoryServer extends EventEmitter {
// Overwrite EventEmitter's definitions (to provide at least the event names)
emit(event: MongoMemoryServerEvents, ...args: any[]): boolean;
on(event: MongoMemoryServerEvents, listener: (...args: any[]) => void): this;
once(event: MongoMemoryServerEvents, listener: (...args: any[]) => void): this;
}

// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
export class MongoMemoryServer extends EventEmitter implements ManagerAdvanced {
/**
* Information about the started instance
Expand Down
2 changes: 2 additions & 0 deletions packages/mongodb-memory-server-core/src/util/MongoInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ export interface MongodOpts {
spawn: SpawnOptions;
}

// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
export interface MongoInstance extends EventEmitter {
// Overwrite EventEmitter's definitions (to provide at least the event names)
emit(event: MongoInstanceEvents, ...args: any[]): boolean;
Expand All @@ -211,6 +212,7 @@ export interface MongoInstance extends EventEmitter {
* MongoDB Instance Handler Class
* This Class starts & stops the "mongod" process directly and handles stdout, sterr and close events
*/
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
export class MongoInstance extends EventEmitter implements ManagerBase {
// Mark these values as "readonly" & "Readonly" because modifying them after starting will have no effect
// readonly is required otherwise the property can still be changed on the root level
Expand Down
2 changes: 2 additions & 0 deletions packages/mongodb-memory-server-core/src/util/lockfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export enum LockFileEvents {
unlock = 'unlock',
}

// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
interface LockFileEventsClass extends EventEmitter {
// Overwrite EventEmitter's definitions (to provide at least the event names)
emit(event: LockFileEvents, ...args: any[]): boolean;
Expand All @@ -49,6 +50,7 @@ interface LockFileEventsClass extends EventEmitter {
}

/** Dummy class for types */
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
class LockFileEventsClass extends EventEmitter {}

export class LockFile {
Expand Down
Loading

0 comments on commit b4055a7

Please sign in to comment.