Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit 08f832e

Browse files
committed
chore: remove unused eslint comments
1 parent f314d30 commit 08f832e

File tree

11 files changed

+1
-17
lines changed

11 files changed

+1
-17
lines changed

biome.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"formatWithErrors": true
2929
},
3030
"linter": {
31-
"ignore": ["dist", "**/dist", "eslint.config.mjs", "commitlint.config.js", "pre-commit.js"],
31+
"ignore": ["dist", "**/dist", "commitlint.config.js", "pre-commit.js"],
3232
"enabled": true,
3333
"rules": {
3434
"recommended": true,

src/functions/discord/components.ts

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ export const createButton = (
3232
) => {
3333
const button = new ButtonBuilder().setStyle(style)
3434
if (label) button.setLabel(label)
35-
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
3635
style === Link ? button.setURL(customId) : button.setCustomId(customId)
3736
if (emoji) button.setEmoji(emoji)
3837
if (disabled) button.setDisabled(disabled)

src/functions/log/logger.ts

-5
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,10 @@ export const LogStart = (client: ExtendedClient) => {
4242

4343
const avatarURL = client.user.displayAvatarURL()
4444

45-
// eslint-disable-next-line no-console
4645
webhook.send({ embeds, avatarURL }).catch(console.error)
4746
}
4847

4948
export const logError = (error: Error | unknown) => {
50-
// eslint-disable-next-line no-console
5149
console.error(error)
5250
if (!process.env.ERROR) return
5351
if (error instanceof Error && error.message === "Missing Permissions") return
@@ -70,12 +68,10 @@ export const logError = (error: Error | unknown) => {
7068

7169
const embeds = [embed]
7270

73-
// eslint-disable-next-line no-console
7471
webhook.send({ embeds }).catch(console.error)
7572
}
7673

7774
export const guildLog = (guild: Guild, event: "CREATE" | "DELETE") => {
78-
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
7975
event === "CREATE"
8076
? logSuccess(`Guild Create: ${guild.name}`)
8177
: LogFail(`Guild Remove: ${guild.name}`)
@@ -98,6 +94,5 @@ export const guildLog = (guild: Guild, event: "CREATE" | "DELETE") => {
9894

9995
const username = event === "CREATE" ? "Guild Create" : "Guild Delete"
10096

101-
// eslint-disable-next-line no-console
10297
webhook.send({ embeds, username }).catch(console.error)
10398
}

src/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/no-namespace */
21
import { config } from "dotenv"
32
import { z } from "zod"
43
import loadConfig from "./loadConfig.js"

src/loadConfig.ts

-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ declare global {
2323
interface Global {
2424
config: z.infer<typeof configSchema>
2525
}
26-
// eslint-disable-next-line no-var
2726
var config: Global["config"]
2827
}
2928

@@ -47,7 +46,6 @@ export default async function loadConfig() {
4746
logError(config.error)
4847
process.exit(1)
4948
}
50-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
5149
} catch (_error) {
5250
const data = TOML.stringify({
5351
devGuilds: [],

src/structures/Event.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable no-unused-vars */
21
import type { ClientEvents } from "discord.js"
32

43
export default class Event<Key extends keyof ClientEvents> {

src/typings/Buttons.ts

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export interface ExtendedButton extends Omit<ButtonInteraction, "member" | "clie
77
customValue?: string
88
}
99

10-
// eslint-disable-next-line no-unused-vars
1110
export type ButtonFunction = (interaction: ExtendedButton) => unknown
1211

1312
export type ButtonType = {

src/typings/Commands.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable no-unused-vars */
21
import type {
32
ApplicationCommandOptionChoiceData,
43
AutocompleteInteraction,

src/typings/ContextMenus.ts

-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export interface ExtendedMessageContextMenu
1515
client: ExtendedClient
1616
}
1717

18-
// eslint-disable-next-line no-unused-vars
1918
export type MessageContextMenuFunction = (interaction: ExtendedMessageContextMenu) => unknown
2019

2120
export type MessageContextMenuType = {
@@ -31,7 +30,6 @@ export interface ExtendedUserContextMenu
3130
client: ExtendedClient
3231
}
3332

34-
// eslint-disable-next-line no-unused-vars
3533
export type UserContextMenuFunction = (interaction: ExtendedUserContextMenu) => unknown
3634

3735
export type UserContextMenuType = {

src/typings/Modals.ts

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export interface ExtendedModal extends Omit<ModalSubmitInteraction, "member" | "
77
customValue?: string
88
}
99

10-
// eslint-disable-next-line no-unused-vars
1110
export type ModalSubmitFunction = (interaction: ExtendedModal) => unknown
1211

1312
export type ModalType = {

src/typings/SelectMenus.ts

-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ export interface ExtendedAnySelectMenu
5252
client: ExtendedClient
5353
}
5454

55-
// eslint-disable-next-line no-unused-vars
5655
export type SelectMenuFunction<Interaction> = (interaction: Interaction) => unknown
5756

5857
type SelectMenuType<

0 commit comments

Comments
 (0)