Skip to content

Commit 6281dfe

Browse files
committed
Run lint also for test code
1 parent d66f01a commit 6281dfe

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

packages/vscode-messenger-webview/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"clean": "rimraf lib",
2020
"build": "tsc",
2121
"watch": "tsc --watch",
22-
"lint": "eslint src",
22+
"lint": "eslint src tests",
2323
"test": "jest --config ./jest.config.json",
2424
"prepare:next": "npm --workspaces-update false --no-git-tag-version version \"$(semver $npm_package_version)-next.$(git rev-parse --short HEAD)\"",
2525
"publish:next": "npm publish --tag next",

packages/vscode-messenger-webview/tests/messenger-webview.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88
/* eslint-disable @typescript-eslint/no-unused-vars */
99

1010
import crypto from 'crypto';
11-
import { CancellationTokenImpl, createCancelRequestMessage, Disposable, HOST_EXTENSION, isRequestMessage, Message, MessageParticipant, NotificationType, RequestType } from 'vscode-messenger-common';
12-
import { createCancellationToken, Messenger, VsCodeApi } from '../src';
11+
import type { Disposable, Message, MessageParticipant, NotificationType, RequestType } from 'vscode-messenger-common';
12+
import { CancellationTokenImpl, createCancelRequestMessage, HOST_EXTENSION, isRequestMessage } from 'vscode-messenger-common';
13+
import type { VsCodeApi } from '../src';
14+
import { createCancellationToken, Messenger } from '../src';
1315

1416
Object.defineProperty(globalThis, 'crypto', {
1517
value: {
16-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1718
getRandomValues: (arr: string | any[]) => crypto.randomBytes(arr.length)
1819
}
1920
});

packages/vscode-messenger/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"clean": "rimraf lib",
2020
"build": "tsc",
2121
"watch": "tsc --watch",
22-
"lint": "eslint src",
22+
"lint": "eslint src tests",
2323
"test": "jest",
2424
"prepare:next": "npm --workspaces-update false --no-git-tag-version version \"$(semver $npm_package_version)-next.$(git rev-parse --short HEAD)\"",
2525
"publish:next": "npm publish --tag next",

0 commit comments

Comments
 (0)