Skip to content

Commit 2cf1218

Browse files
committed
chore: solve some lint and types errors
1 parent 47fd3ae commit 2cf1218

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

webview-ui/src/components/marketplace/__tests__/MarketplaceListView.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jest.mock("lucide-react", () => {
5050
return new Proxy(
5151
{},
5252
{
53-
get: function (obj, prop) {
53+
get: function (_obj, prop) {
5454
if (prop === "__esModule") {
5555
return true
5656
}

webview-ui/src/components/marketplace/__tests__/MarketplaceView.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jest.mock("lucide-react", () => {
5252
return new Proxy(
5353
{},
5454
{
55-
get: function (obj, prop) {
55+
get: function (_obj, prop) {
5656
if (prop === "__esModule") {
5757
return true
5858
}
@@ -204,6 +204,8 @@ describe("MarketplaceView", () => {
204204
setHistoryPreviewCollapsed: jest.fn(),
205205
autoCondenseContextPercent: 100,
206206
setAutoCondenseContextPercent: jest.fn(),
207+
setCondensingApiConfigId: jest.fn(),
208+
setCustomCondensingPrompt: jest.fn(),
207209
setMarketplaceSources: jest.fn(),
208210
version: "1.0.0",
209211
clineMessages: [],

webview-ui/src/utils/url.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export const isValidUrl = (urlString: string): boolean => {
22
try {
33
new URL(urlString)
44
return true
5-
} catch (e) {
5+
} catch {
66
return false
77
}
88
}

0 commit comments

Comments
 (0)