Skip to content

Commit bfbae39

Browse files
committed
lint
1 parent 57b52b5 commit bfbae39

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

scripts/vendor-esbuild.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ const contents = `
1919
// Code generated by scripts/vendor-esbuild; DO NOT EDIT.
2020
// ${commonUrl}
2121
22-
/* eslint-disable unicorn/no-abusive-eslint-disable */
2322
/* eslint-disable */
2423
2524
/*!

src/esbuild/third_party/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Code generated by scripts/vendor-esbuild; DO NOT EDIT.
22
// https://raw.githubusercontent.com/evanw/esbuild/v0.25.5/lib/shared/common.ts
33

4-
/* eslint-disable unicorn/no-abusive-eslint-disable */
4+
55
/* eslint-disable */
66

77
/*!

src/esbuild/wasiWorker.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,23 @@ async function runEsbuildWasi(
6767
let stderr = "";
6868

6969
class StringOutput extends Fd {
70-
constructor(private output: (data: string) => void) {
70+
#output: (data: string) => void;
71+
72+
constructor(output: (data: string) => void) {
7173
super();
74+
this.#output = output;
7275
}
7376

77+
// eslint-disable-next-line @typescript-eslint/naming-convention
7478
override fd_write(data: Uint8Array): { ret: number; nwritten: number; } {
75-
this.output(new TextDecoder().decode(data));
79+
this.#output(new TextDecoder().decode(data));
7680
return { ret: 0, nwritten: data.length };
7781
}
7882
}
7983

8084
const fs = createFileSystem(files);
8185

82-
let fds = [
86+
const fds = [
8387
new OpenFile(new File([])), // stdin
8488
new StringOutput((data) => {
8589
stdout += data;
@@ -146,7 +150,7 @@ function createFileSystem(files: Map<string, string>): PreopenDirectory {
146150
for (const [name, data] of files) {
147151
const parts = name.slice(1).split("/");
148152
const parents = parts.slice(0, -1);
149-
const base = parts.at(-1)!;
153+
const base = parts.at(-1)!; // eslint-disable-line @typescript-eslint/no-non-null-assertion
150154

151155
let current = tree;
152156
for (const parent of parents) {

src/twoslash.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function splitInput(input: string): SplitInput {
5151
}
5252

5353
finalizeFile();
54-
assert(currentFilename, "at least one file should have been found");
54+
assert.ok(currentFilename, "at least one file should have been found");
5555

5656
let entrypoint = currentFilename;
5757
for (const ext of allExtensions) {

0 commit comments

Comments
 (0)