From ff62f54576e375152102b41ea8755fb68c9edcf0 Mon Sep 17 00:00:00 2001 From: LucasB25 <50886682+LucasB25@users.noreply.github.com> Date: Thu, 8 Aug 2024 16:59:06 +0200 Subject: [PATCH] lint fix --- scripts/clean.js | 3 +++ scripts/restart.ts | 1 + src/commands/dev/Eval.ts | 1 + src/commands/dev/Restart.ts | 1 + src/commands/info/Botinfo.ts | 1 + src/index.ts | 1 + src/plugin/index.ts | 3 +++ src/plugin/plugins/keepAlive.ts | 1 + src/structures/Lavamusic.ts | 3 +++ 9 files changed, 15 insertions(+) diff --git a/scripts/clean.js b/scripts/clean.js index 4ce4104c4..ee300b1aa 100644 --- a/scripts/clean.js +++ b/scripts/clean.js @@ -1,5 +1,8 @@ +// biome-ignore lint/correctness/noNodejsModules: import { existsSync } from "node:fs"; +// biome-ignore lint/correctness/noNodejsModules: import { rm } from "node:fs/promises"; +// biome-ignore lint/correctness/noNodejsModules: import { resolve } from "node:path"; async function clean() { diff --git a/scripts/restart.ts b/scripts/restart.ts index f2ba2a50f..67e4e1085 100644 --- a/scripts/restart.ts +++ b/scripts/restart.ts @@ -1,3 +1,4 @@ +// biome-ignore lint/correctness/noNodejsModules: import { exec } from "node:child_process"; async function startLavamusic(): Promise { diff --git a/src/commands/dev/Eval.ts b/src/commands/dev/Eval.ts index 6f0e890fc..8c746c95a 100644 --- a/src/commands/dev/Eval.ts +++ b/src/commands/dev/Eval.ts @@ -1,3 +1,4 @@ +// biome-ignore lint/correctness/noNodejsModules: import util from "node:util"; import { ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js"; import { fetch } from "undici"; diff --git a/src/commands/dev/Restart.ts b/src/commands/dev/Restart.ts index 979e47741..04ad6dbf0 100644 --- a/src/commands/dev/Restart.ts +++ b/src/commands/dev/Restart.ts @@ -1,3 +1,4 @@ +// biome-ignore lint/correctness/noNodejsModules: import { exec } from "node:child_process"; import { ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js"; import { Command, type Context, type Lavamusic } from "../../structures/index.js"; diff --git a/src/commands/info/Botinfo.ts b/src/commands/info/Botinfo.ts index c4038bfea..3f3bc0688 100644 --- a/src/commands/info/Botinfo.ts +++ b/src/commands/info/Botinfo.ts @@ -1,3 +1,4 @@ +// biome-ignore lint/correctness/noNodejsModules: import os from "node:os"; import { version } from "discord.js"; import { showTotalMemory, usagePercent } from "node-system-stats"; diff --git a/src/index.ts b/src/index.ts index c5afa14e7..82adc7d07 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,5 @@ // biome-ignore lint/style/noNamespaceImport: +// biome-ignore lint/correctness/noNodejsModules: import * as fs from "node:fs"; import { ShardingManager } from "discord.js"; diff --git a/src/plugin/index.ts b/src/plugin/index.ts index dd455b10f..60902b424 100644 --- a/src/plugin/index.ts +++ b/src/plugin/index.ts @@ -1,5 +1,8 @@ +// biome-ignore lint/correctness/noNodejsModules: import fs from "node:fs"; +// biome-ignore lint/correctness/noNodejsModules: import path from "node:path"; +// biome-ignore lint/correctness/noNodejsModules: import { fileURLToPath } from "node:url"; import type { Lavamusic } from "../structures/index.js"; diff --git a/src/plugin/plugins/keepAlive.ts b/src/plugin/plugins/keepAlive.ts index adf545818..2b5c1d227 100644 --- a/src/plugin/plugins/keepAlive.ts +++ b/src/plugin/plugins/keepAlive.ts @@ -1,3 +1,4 @@ +// biome-ignore lint/correctness/noNodejsModules: import http from "node:http"; import type { Lavamusic } from "../../structures/index.js"; import type { BotPlugin } from "../index.js"; diff --git a/src/structures/Lavamusic.ts b/src/structures/Lavamusic.ts index 96a58dd27..727cc4aec 100644 --- a/src/structures/Lavamusic.ts +++ b/src/structures/Lavamusic.ts @@ -1,5 +1,8 @@ +// biome-ignore lint/correctness/noNodejsModules: import fs from "node:fs"; +// biome-ignore lint/correctness/noNodejsModules: import path from "node:path"; +// biome-ignore lint/correctness/noNodejsModules: import { fileURLToPath } from "node:url"; import { Api } from "@top-gg/sdk"; import {