Skip to content

Commit 41af576

Browse files
authored
upgrade dev dependencies to the latest and fix lint errors (#1089)
1 parent 15b61f5 commit 41af576

File tree

14 files changed

+503
-114
lines changed

14 files changed

+503
-114
lines changed

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -670,26 +670,26 @@
670670
"@types/istanbul-lib-coverage": "^2.0.4",
671671
"@types/istanbul-lib-source-maps": "^4.0.1",
672672
"@types/jest": "^29.5.6",
673-
"@types/node": "^18.11.18",
674-
"@typescript-eslint/eslint-plugin": "^5.48.1",
675-
"@typescript-eslint/parser": "^5.48.1",
673+
"@types/node": "^20.8.10",
674+
"@typescript-eslint/eslint-plugin": "^6.9.1",
675+
"@typescript-eslint/parser": "^6.9.1",
676676
"@vscode/test-electron": "^2.2.2",
677677
"eslint": "^8.31.0",
678-
"eslint-config-prettier": "^8.6.0",
678+
"eslint-config-prettier": "^9.0.0",
679679
"eslint-plugin-jest": "^27.2.1",
680-
"eslint-plugin-jsdoc": "^39.6.4",
680+
"eslint-plugin-jsdoc": "^46.8.2",
681681
"eslint-plugin-prefer-arrow": "^1.2.3",
682-
"eslint-plugin-prettier": "^4.2.1",
682+
"eslint-plugin-prettier": "^5.0.1",
683683
"fs-extra": "^11.1.1",
684684
"jest": "^29.7",
685685
"jest-snapshot": "^27.2.0",
686-
"prettier": "^2.8.2",
686+
"prettier": "^3.0.3",
687687
"raw-loader": "^4.0.1",
688-
"rimraf": "^3.0.2",
688+
"rimraf": "^5.0.5",
689689
"ts-jest": "^29.0.3",
690690
"ts-loader": "^9.4.2",
691691
"ts-node": "^10.9.1",
692-
"typescript": "^4.9.4",
692+
"typescript": "^5.2.2",
693693
"webpack": "^5.75.0",
694694
"webpack-cli": "^5.0.1"
695695
},

src/JestExt/output-terminal.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ export class ExtOutputTerminal implements JestExtOutput {
6464
this._terminal = undefined;
6565
},
6666
};
67-
constructor(private name: string, enabled?: boolean) {
67+
constructor(
68+
private name: string,
69+
enabled?: boolean
70+
) {
6871
this.ptyIsOpen = false;
6972
this.pendingMessages = new PendingOutput();
7073
this.enabled = enabled ?? false;

src/JestExt/process-listeners.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,11 @@ export const DEFAULT_LONG_RUN_THRESHOLD = 60000;
178178
export class LongRunMonitor {
179179
private timer: NodeJS.Timeout | undefined;
180180
public readonly thresholdMs: number;
181-
constructor(private callback: () => void, private logging: Logging, option?: MonitorLongRun) {
181+
constructor(
182+
private callback: () => void,
183+
private logging: Logging,
184+
option?: MonitorLongRun
185+
) {
182186
if (option == null) {
183187
this.thresholdMs = DEFAULT_LONG_RUN_THRESHOLD;
184188
} else if (typeof option === 'number' && option > 0) {

src/JestProcessManagement/JestProcess.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ export class JestProcess implements JestProcessInfo {
8989
}
9090

9191
private getReporterPath() {
92-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
9392
const extensionPath = vscode.extensions.getExtension(extensionId)!.extensionPath;
9493
return join(extensionPath, 'out', 'reporter.js');
9594
}
@@ -112,7 +111,6 @@ export class JestProcess implements JestProcessInfo {
112111
args: { args: ['--colors'] },
113112
};
114113

115-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
116114
const args = options.args!.args;
117115

118116
switch (this.request.type) {
@@ -186,7 +184,7 @@ export class JestProcess implements JestProcessInfo {
186184
const promise = new Promise<void>((resolve, reject) => {
187185
taskInfo = { runner, resolve, reject };
188186
});
189-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
187+
190188
this.task = { ...taskInfo!, promise };
191189

192190
runner.start(this.watchMode !== WatchMode.None, this.watchMode === WatchMode.WatchAll);

src/JestProcessManagement/JestProcessManager.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export class JestProcessManager implements TaskArrayFunctions<JestProcess> {
2828
}
2929

3030
private getQueue(type: QueueType): TaskQueue<JestProcess> {
31-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3231
return this.queues.get(type)!;
3332
}
3433

src/StatusBar.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ export interface StatusBarUpdateRequest {
3535
class TypedStatusBarItem {
3636
public status: ExtensionStatus = {};
3737
public isVisible = false;
38-
constructor(public readonly type: StatusType, protected readonly actual: vscode.StatusBarItem) {
38+
constructor(
39+
public readonly type: StatusType,
40+
protected readonly actual: vscode.StatusBarItem
41+
) {
3942
this.actual.hide();
4043
}
4144
hide() {

src/TestResults/TestResultProvider.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ export class TestSuiteRecord implements TestSuiteUpdatable {
6262
private _testBlocks?: TestBlocks | 'failed';
6363
private _assertionContainer?: ContainerNode<TestAssertionStatus>;
6464

65-
constructor(public testFile: string, private reconciler: TestReconciler, private parser: Parser) {
65+
constructor(
66+
public testFile: string,
67+
private reconciler: TestReconciler,
68+
private parser: Parser
69+
) {
6670
this._status = TestReconciliationState.Unknown;
6771
this._message = '';
6872
}

src/TestResults/match-by-context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ const createMessaging =
169169
type MatchResultType<C extends ContextType> = [
170170
ChildNodeType<ItBlock, C>,
171171
ChildNodeType<TestAssertionStatus, C>[],
172-
MatchEvent
172+
MatchEvent,
173173
];
174174
interface ContextMatchAlgorithm {
175175
match: (

src/messaging.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function _extractActionTitles(actions?: MessageAction[]): string[] {
1616
return actions ? actions.map((a) => a.title) : [];
1717
}
1818
// expose the internal function so we can unit testing it
19-
// eslint-disable-next-line @typescript-eslint/no-empty-function
19+
2020
const doNothing = () => {};
2121
export function _handleMessageActions(actions?: MessageAction[]): (action?: string) => void {
2222
if (!actions || actions.length <= 0) {

src/noop-fs-provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* istanbul ignore file */
2-
/* eslint-disable @typescript-eslint/no-empty-function */
2+
33
import * as vscode from 'vscode';
44

55
/**

0 commit comments

Comments
 (0)