Skip to content

Commit d4fcbb0

Browse files
authored
fix linting and update eslint rule (#946)
fixes #944
1 parent 791841a commit d4fcbb0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ export default [{
3535
eqeqeq: "warn",
3636
"no-throw-literal": "warn",
3737
semi: "warn",
38-
"@typescript-eslint/no-explicit-any": "warn",
38+
"@typescript-eslint/no-explicit-any": "error",
3939
},
4040
}];

src/test/features/terminalEnvVarInjectorBasic.unit.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ suite('TerminalEnvVarInjector Basic Tests', () => {
4040
};
4141

4242
// Setup environment variable collection to return scoped collection
43-
envVarCollection.setup((x) => x.getScoped(typeMoq.It.isAny())).returns(() => mockScopedCollection as any);
43+
envVarCollection
44+
.setup((x) => x.getScoped(typeMoq.It.isAny()))
45+
.returns(
46+
() => mockScopedCollection as unknown as ReturnType<GlobalEnvironmentVariableCollection['getScoped']>,
47+
);
4448
envVarCollection.setup((x) => x.clear()).returns(() => {});
4549

4650
// Setup minimal mocks for event subscriptions

0 commit comments

Comments
 (0)