diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 865691763..ab88a144e 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -512,7 +512,7 @@ "esbuild": "npm run esbuild-base -- --sourcemap", "esbuild-watch": "npm run esbuild-base -- --sourcemap --watch", "build-font": "fantasticon", - "lint": "eslint src --max-warnings 0", + "lint": "eslint src --max-warnings 0 && eslint webviews/homeView/src --max-warnings 0", "compile": "tsc -p ./", "test": "npm run compile && node ./out/test/runTest.js", "test-unit": "vitest run" diff --git a/extensions/vscode/webviews/homeView/src/HostConduitService.ts b/extensions/vscode/webviews/homeView/src/HostConduitService.ts index 3c77646d8..48136d423 100644 --- a/extensions/vscode/webviews/homeView/src/HostConduitService.ts +++ b/extensions/vscode/webviews/homeView/src/HostConduitService.ts @@ -119,7 +119,7 @@ const onRefreshContentRecordDataMsg = (msg: RefreshContentRecordDataMsg) => { const home = useHomeStore(); home.contentRecords = msg.content.contentRecords; - let selector = msg.content.deploymentSelected; + const selector = msg.content.deploymentSelected; if (selector === null) { home.selectedContentRecord = undefined; return; diff --git a/extensions/vscode/webviews/homeView/src/stores/home.ts b/extensions/vscode/webviews/homeView/src/stores/home.ts index ffc00bc37..2763ee03c 100644 --- a/extensions/vscode/webviews/homeView/src/stores/home.ts +++ b/extensions/vscode/webviews/homeView/src/stores/home.ts @@ -95,7 +95,7 @@ export const useHomeStore = defineStore("home", () => { watch( [selectedContentRecord, selectedConfiguration], - ([contentRecord, config], [prevContentRecord, prevConfig]) => { + ([contentRecord, config], [prevContentRecord]) => { const result = new Map(); if (config === undefined || isConfigurationError(config)) { @@ -277,7 +277,7 @@ export const useHomeStore = defineStore("home", () => { isMissingRequirements: computed(() => { return pythonProject.value && !pythonPackageFile.value; }), - isAlertActive: computed((): Boolean => { + isAlertActive: computed((): boolean => { return ( python.active.isEmptyRequirements.value || python.active.isMissingRequirements.value diff --git a/extensions/vscode/webviews/homeView/src/utils/hostConduit.ts b/extensions/vscode/webviews/homeView/src/utils/hostConduit.ts index 934c250ac..b22dad492 100644 --- a/extensions/vscode/webviews/homeView/src/utils/hostConduit.ts +++ b/extensions/vscode/webviews/homeView/src/utils/hostConduit.ts @@ -17,7 +17,7 @@ export class HostConduit { private readonly vsCodeApi: WebviewApi, ) {} - private rawMsgCB = (e: any) => { + private rawMsgCB = (e: MessageEvent) => { if (this.externalMsgCB) { const obj = JSON.parse(e.data); if (isHostToWebviewMessage(obj)) {