Skip to content

Commit ee95126

Browse files
committed
fixes to linting errors
1 parent 36a145e commit ee95126

File tree

7 files changed

+7
-1
lines changed

7 files changed

+7
-1
lines changed

build/webpack/webpack.extension.browser.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const packageRoot = path.resolve(__dirname, '..', '..');
1313
const outDir = path.resolve(packageRoot, 'dist');
1414

1515
/** @type {(env: any, argv: { mode: 'production' | 'development' | 'none' }) => import('webpack').Configuration} */
16-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
16+
// eslint-disable-next-line no-unused-vars
1717
const nodeConfig = (_, { mode }) => ({
1818
context: packageRoot,
1919
entry: {

src/client/common/application/applicationEnvironment.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export class ApplicationEnvironment implements IApplicationEnvironment {
4141
? path.join(this.process.env.APPDATA, vscodeFolderName, 'User', 'settings.json')
4242
: undefined;
4343
default:
44+
// eslint-disable-next-line getter-return
4445
return;
4546
}
4647
}

src/client/common/extensions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
45
declare interface String {
56
/**
67
* Appropriately formats a string so it can be used as an argument for a command in a shell.

src/client/common/terminal/service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export class TerminalService implements ITerminalService, Disposable {
9494
this._terminalFirstLaunched = false;
9595
const promise = new Promise<boolean>((resolve) => {
9696
const disposable = this.terminalManager.onDidChangeTerminalShellIntegration(() => {
97+
// eslint-disable-next-line @typescript-eslint/no-use-before-define
9798
clearTimeout(timer);
9899
disposable.dispose();
99100
resolve(true);

src/client/common/utils/cacheUtils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export class InMemoryCache<T> {
4848
*/
4949
public get data(): T | undefined {
5050
if (!this.hasData) {
51+
// eslint-disable-next-line getter-return
5152
return;
5253
}
5354
return this.cacheData?.value;

src/client/testing/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export class UnitTestManagementService implements IExtensionActivationService {
7272
this.registerHandlers();
7373
this.registerCommands();
7474

75+
// eslint-disable-next-line no-extra-boolean-cast
7576
if (!!tests.testResults) {
7677
await this.updateTestUIButtons();
7778
this.disposableRegistry.push(

src/test/common.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,7 @@ export async function waitForCondition(
462462
const timeout = setTimeout(() => {
463463
clearTimeout(timeout);
464464

465+
// eslint-disable-next-line @typescript-eslint/no-use-before-define
465466
clearTimeout(timer);
466467
reject(new Error(errorMessage));
467468
}, timeoutMs);

0 commit comments

Comments
 (0)