cleanup: replace console.log/warn with $console, remove commented-out code

Removed various commented-out code and replaced direct `console.log` and `console.warn` usage across the codebase with `$console` from "core" for standardized logging. Also adjusted linting rules in biome.json to enable warnings for `console.log` usage.
This commit is contained in:
dswbx
2025-04-10 14:18:48 +02:00
parent ad7926db4c
commit 4e718a063d
79 changed files with 180 additions and 565 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import { Type } from "core/utils";
import { Task } from "../Task";
import { $console } from "core";
export class LogTask extends Task<typeof LogTask.schema> {
type = "log";
@@ -10,7 +11,7 @@ export class LogTask extends Task<typeof LogTask.schema> {
async execute() {
await new Promise((resolve) => setTimeout(resolve, this.params.delay));
console.log(`[DONE] LogTask: ${this.name}`);
$console.log(`[DONE] LogTask: ${this.name}`);
return true;
}
}