Skip to content

Commit 863b833

Browse files
committed
more lint rules
1 parent 3cc0f0c commit 863b833

File tree

6 files changed

+13
-0
lines changed

6 files changed

+13
-0
lines changed

bundle.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,13 @@ async function buildAll(
4242
const Dictionary = await import("./dictionary/build.ts");
4343
await Dictionary.build(checkDictionary ?? true);
4444
}
45+
// deno-lint-ignore no-console
4546
console.log("Building main.js...");
4647
await ESBuild.build(buildOptions(minify));
48+
// deno-lint-ignore no-console
4749
console.log("Building done!");
4850
} catch (error) {
51+
// deno-lint-ignore no-console
4952
console.error(error);
5053
}
5154
}
@@ -56,6 +59,7 @@ if (import.meta.main) {
5659
break;
5760
}
5861
case "watch": {
62+
// deno-lint-ignore no-console
5963
console.log("Press ctrl+c to exit.");
6064
const watcher = Deno.watchFs(WATCH);
6165
let task = Promise.resolve();

deno.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"camelcase",
3636
"explicit-function-return-type",
3737
"explicit-module-boundary-types",
38+
"no-console",
3839
"no-boolean-literal-for-arguments",
3940
"no-eval",
4041
"no-inferrable-types",

dictionary/build.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export async function build(checkFile: boolean): Promise<void> {
3535
}
3636
}
3737
}
38+
// deno-lint-ignore no-console
3839
console.log("Building dictionary...");
3940
const text = await currentPromise;
4041
const json = JSON.stringify(

src/main.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ function main(): void {
141141
errorDisplay.innerText = errorsFixable(flattenError(error))
142142
? DICTIONARY_LOADING_FAILED_FIXABLE_MESSAGE
143143
: DICTIONARY_LOADING_FAILED_UNFIXABLE_MESSAGE;
144+
// deno-lint-ignore no-console
144145
console.error(error);
145146
}
146147
}
@@ -212,6 +213,7 @@ function main(): void {
212213
list[property] = extractErrorMessage(item);
213214
errorList.appendChild(list);
214215
}
216+
// deno-lint-ignore no-console
215217
console.error(error);
216218
}
217219
}
@@ -285,6 +287,7 @@ function main(): void {
285287
.map(extractErrorMessage)
286288
.map((message) => `\n- ${message.replaceAll(NEWLINES, "$& ")}`);
287289
displayToCustomDictionary(asComment(`${message}${errorListMessage}`));
290+
// deno-lint-ignore no-console
288291
console.error(error);
289292
}
290293
});

src/repl.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { repeatArray } from "./misc.ts";
44
import { translate } from "./mod.ts";
55

66
if (import.meta.main) {
7+
// deno-lint-ignore no-console
78
console.log(
89
"Welcome to the ilo Token REPL. Press ctrl+d or ctrl+c to exit.",
910
);
@@ -20,12 +21,14 @@ if (import.meta.main) {
2021
translation.replaceAll(/<\/?strong>/g, "%c"),
2122
{ entityList },
2223
);
24+
// deno-lint-ignore no-console
2325
console.log(
2426
` - ${text}`,
2527
...repeatArray(["font-weight: bold", ""], count).flat(),
2628
);
2729
}
2830
} catch (error) {
31+
// deno-lint-ignore no-console
2932
console.error(error);
3033
}
3134
}

telo_misikeke/update.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,6 @@ if (import.meta.main) {
7676
buildCode(file.source, file.destination, file.exportItems)
7777
),
7878
]);
79+
// deno-lint-ignore no-console
7980
console.log("Updated telo misikeke.");
8081
}

0 commit comments

Comments
 (0)