Skip to content

Commit 7af8dd7

Browse files
committed
Fix new ESLint warnings
1 parent 635e7c1 commit 7af8dd7

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

eslint.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import eslint from "@eslint/js";
22
import eslintConfigPrettier from "eslint-config-prettier/flat";
3+
import { defineConfig } from "eslint/config";
34
import tseslint from "typescript-eslint";
45

5-
export default tseslint.config(
6+
export default defineConfig(
67
eslint.configs.recommended,
78
tseslint.configs.strictTypeChecked,
89
tseslint.configs.stylisticTypeChecked,

src/features/OpenInISE.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ export class OpenInISEFeature implements vscode.Disposable {
2121
let ISEPath = process.env.windir ?? "C:\\Windows";
2222

2323
if (process.env.PROCESSOR_ARCHITEW6432 !== undefined) {
24-
ISEPath += "\\Sysnative";
24+
(ISEPath as string) += "\\Sysnative";
2525
} else {
26-
ISEPath += "\\System32";
26+
(ISEPath as string) += "\\System32";
2727
}
2828

29-
ISEPath += "\\WindowsPowerShell\\v1.0\\powershell_ise.exe";
29+
(ISEPath as string) +=
30+
"\\WindowsPowerShell\\v1.0\\powershell_ise.exe";
3031

3132
ChildProcess.exec(`${ISEPath} -File "${uri.fsPath}"`).unref();
3233
},

test/core/platform.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ let successAdditionalTestCases: ITestPlatformSuccessCase[];
3838

3939
if (process.platform === "win32") {
4040
const msixAppDir = path.join(
41-
process.env.LOCALAPPDATA!,
41+
process.env.LOCALAPPDATA as string,
4242
"Microsoft",
4343
"WindowsApps",
4444
);

0 commit comments

Comments
 (0)