Skip to content

Commit 42d3dcc

Browse files
committed
Fixed linting issues
Signed-off-by: paulober <[email protected]>
1 parent 0cb3747 commit 42d3dcc

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/extension.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ import NewExampleProjectCommand from "./commands/newExampleProject.mjs";
7474
import SwitchBoardCommand from "./commands/switchBoard.mjs";
7575
import UninstallPicoSDKCommand from "./commands/uninstallPicoSDK.mjs";
7676
import FlashProjectSWDCommand from "./commands/flashProjectSwd.mjs";
77+
// eslint-disable-next-line max-len
7778
import { NewMicroPythonProjectPanel } from "./webview/newMicroPythonProjectPanel.mjs";
7879

7980
export async function activate(context: ExtensionContext): Promise<void> {

src/webview/newMicroPythonProjectPanel.mts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1+
/* eslint-disable max-len */
2+
import type { Webview, Progress } from "vscode";
13
import {
24
Uri,
35
ViewColumn,
46
window,
57
type WebviewPanel,
68
type Disposable,
79
ColorThemeKind,
8-
Webview,
910
workspace,
1011
ProgressLocation,
11-
Progress,
1212
commands,
1313
} from "vscode";
1414
import Settings from "../settings.mjs";
1515
import Logger from "../logger.mjs";
16+
import type { WebviewMessage } from "./newProjectPanel.mjs";
1617
import {
1718
getNonce,
1819
getProjectFolderDialogOptions,
1920
getWebviewOptions,
20-
WebviewMessage,
2121
} from "./newProjectPanel.mjs";
2222
import which from "which";
2323
import { existsSync } from "fs";
@@ -42,7 +42,7 @@ export class NewMicroPythonProjectPanel {
4242

4343
private _projectRoot?: Uri;
4444

45-
public static createOrShow(extensionUri: Uri, projectUri?: Uri) {
45+
public static createOrShow(extensionUri: Uri, projectUri?: Uri): void {
4646
const column = window.activeTextEditor
4747
? window.activeTextEditor.viewColumn
4848
: undefined;
@@ -194,7 +194,8 @@ export class NewMicroPythonProjectPanel {
194194
existsSync(join(this._projectRoot.fsPath, data.projectName))
195195
) {
196196
void window.showErrorMessage(
197-
"Project already exists. Please select a different project name or root."
197+
"Project already exists. " +
198+
"Please select a different project name or root."
198199
);
199200
await this._panel.webview.postMessage({
200201
command: "submitDenied",
@@ -246,7 +247,8 @@ export class NewMicroPythonProjectPanel {
246247
projectPath.length === 0
247248
) {
248249
void window.showErrorMessage(
249-
"Failed to generate MicroPython project. Please try again and check your settings."
250+
"Failed to generate MicroPython project. " +
251+
"Please try again and check your settings."
250252
);
251253

252254
return;
@@ -311,7 +313,7 @@ print("Finished.")\r\n`;
311313
Uri.file(filePath),
312314
new TextEncoder().encode(blinkPyCode)
313315
);
314-
} catch (err) {
316+
} catch {
315317
progress.report({
316318
message: "Failed",
317319
increment: 100,

0 commit comments

Comments
 (0)