Skip to content

Commit 79d3024

Browse files
committed
Replace TSLint comments with ESLint comments
1 parent 3c32d0a commit 79d3024

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

src/controls/checkboxQuickPick.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function showInner(
7575
if (index >= 0) {
7676
toggleSelection(items[index]);
7777
} else {
78-
// tslint:disable-next-line:no-console
78+
// eslint-disable-next-line no-console
7979
console.log(`Couldn't find CheckboxQuickPickItem for label '${selection.label}'`);
8080
}
8181

src/features/CustomViews.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class PowerShellContentProvider implements vscode.TextDocumentContentProvider {
7474
private viewIndex: { [id: string]: CustomView } = {};
7575
private didChangeEvent: vscode.EventEmitter<vscode.Uri> = new vscode.EventEmitter<vscode.Uri>();
7676

77-
// tslint:disable-next-line:member-ordering
77+
// eslint-disable-next-line @typescript-eslint/member-ordering
7878
public onDidChange: vscode.Event<vscode.Uri> = this.didChangeEvent.event;
7979

8080
public provideTextDocumentContent(uri: vscode.Uri): string {

src/features/ExtensionCommands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export const GetEditorContextRequestType =
9393
new RequestType<IGetEditorContextRequestArguments, IEditorContext, void>(
9494
"editor/getEditorContext");
9595

96-
// tslint:disable-next-line:no-empty-interface
96+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
9797
export interface IGetEditorContextRequestArguments {
9898
}
9999

src/logging.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export class Logger implements ILogger {
187187
timestampedMessage + os.EOL,
188188
(err) => {
189189
if (err) {
190-
// tslint:disable-next-line:no-console
190+
// eslint-disable-next-line no-console
191191
console.log(`Error writing to vscode-powershell log file: ${err}`);
192192
}
193193
});

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import { PowerShellLanguageId } from "./utils";
3535
import { LanguageClientConsumer } from "./languageClientConsumer";
3636

3737
// The most reliable way to get the name and version of the current extension.
38-
// tslint:disable-next-line: no-var-requires
38+
// eslint-disable-next-line @typescript-eslint/no-var-requires
3939
const PackageJSON: any = require("../../package.json");
4040

4141
// the application insights key (also known as instrumentation key) used for telemetry.

src/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ class SessionMenuItem implements vscode.QuickPickItem {
776776

777777
constructor(
778778
public readonly label: string,
779-
// tslint:disable-next-line:no-empty
779+
// eslint-disable-next-line no-empty, @typescript-eslint/no-empty-function
780780
public readonly callback: () => void = () => {}) {
781781
}
782782
}

src/settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ export function load(): ISettings {
264264
notebooks:
265265
configuration.get<INotebooksSettings>("notebooks", defaultNotebooksSettings),
266266
startAsLoginShell:
267-
// tslint:disable-next-line
267+
// eslint-disable-next-line
268268
// We follow the same convention as VS Code - https://github.com/microsoft/vscode/blob/ff00badd955d6cfcb8eab5f25f3edc86b762f49f/src/vs/workbench/contrib/terminal/browser/terminal.contribution.ts#L105-L107
269269
// "Unlike on Linux, ~/.profile is not sourced when logging into a macOS session. This
270270
// is the reason terminals on macOS typically run login shells by default which set up

test/features/ExternalApi.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import * as vscode from "vscode";
66
import { before, beforeEach, afterEach } from "mocha";
77
import { IExternalPowerShellDetails, IPowerShellExtensionClient } from "../../src/features/ExternalApi";
88

9-
// tslint:disable-next-line: no-var-requires
9+
// eslint-disable-next-line @typescript-eslint/no-var-requires
1010
const PackageJSON: any = require("../../../package.json");
1111
const testExtensionId = `${PackageJSON.publisher}.${PackageJSON.name}`;
1212

test/runTests.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as path from "path";
55

66
import { runTests } from "vscode-test";
77

8-
// tslint:disable-next-line: no-var-requires
8+
// eslint-disable-next-line @typescript-eslint/no-var-requires
99
const PackageJSON: any = require("../../package.json");
1010
const testExtensionId = `${PackageJSON.publisher}.${PackageJSON.name}`;
1111

@@ -31,9 +31,9 @@ async function main() {
3131
version: "insiders"
3232
});
3333
} catch (err) {
34-
// tslint:disable-next-line:no-console
34+
// eslint-disable-next-line no-console
3535
console.error(err);
36-
// tslint:disable-next-line:no-console
36+
// eslint-disable-next-line no-console
3737
console.error("Failed to run tests");
3838
process.exit(1);
3939
}

0 commit comments

Comments
 (0)