mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
chore: Migrate ESLint and prettier to Biome (#3634)
* Migrate eslint and prettier to biomejs This does NOT include examples/bigbot as it has its own formatter * Update to biome 1.8.0 * Readd dotenv dev dependency to rest During a merge it got lost
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { createBot, Intents, LogDepth, type logger as discordenoLogger } from '@discordeno/bot'
|
||||
import { Intents, LogDepth, createBot, type logger as discordenoLogger } from '@discordeno/bot'
|
||||
import { createProxyCache } from 'dd-cache-proxy'
|
||||
import { configs } from './config.js'
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Collection, type ApplicationCommandOption, type ApplicationCommandTypes, type Interaction } from '@discordeno/bot'
|
||||
import { type ApplicationCommandOption, type ApplicationCommandTypes, Collection, type Interaction } from '@discordeno/bot'
|
||||
|
||||
export const commands = new Collection<string, Command>()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ApplicationCommandOptionTypes, ApplicationCommandTypes, createEmbeds, Permissions, type Member, type User } from '@discordeno/bot'
|
||||
import { ApplicationCommandOptionTypes, ApplicationCommandTypes, type Member, Permissions, type User, createEmbeds } from '@discordeno/bot'
|
||||
import { bot } from '../bot.js'
|
||||
import { createCommand } from '../commands.js'
|
||||
import { calculateMemberPermissions } from '../utils/permissions.js'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { logger } from '@discordeno/bot'
|
||||
import { readdir } from 'node:fs/promises'
|
||||
import { logger } from '@discordeno/bot'
|
||||
|
||||
export default async function importDirectory(folder: string): Promise<void> {
|
||||
const files = await readdir(folder, { recursive: true })
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { BitwisePermissionFlags, type Guild, type Member } from '@discordeno/bot'
|
||||
import assert from 'node:assert'
|
||||
import { BitwisePermissionFlags, type Guild, type Member } from '@discordeno/bot'
|
||||
|
||||
export async function calculateMemberPermissions(guild: Guild, member: Member): Promise<bigint> {
|
||||
if (member.id === guild.ownerId) return 8n
|
||||
|
||||
Reference in New Issue
Block a user