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,6 +1,6 @@
|
||||
import fastifyMultipart from '@fastify/multipart'
|
||||
import fastifyEnv from '@fastify/env'
|
||||
import fastifyHelmet from '@fastify/helmet'
|
||||
import fastifyMultipart from '@fastify/multipart'
|
||||
import fastify, { type FastifyInstance } from 'fastify'
|
||||
|
||||
export const buildFastifyApp = async (): Promise<FastifyInstance> => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { type RequestMethods, createRestManager } from '@discordeno/rest'
|
||||
import type { MultipartFile, MultipartValue } from '@fastify/multipart'
|
||||
import { createRestManager, type RequestMethods } from '@discordeno/rest'
|
||||
import { buildFastifyApp } from './fastify.js'
|
||||
|
||||
const app = await buildFastifyApp()
|
||||
@@ -13,7 +13,7 @@ const discordRestManager = createRestManager({
|
||||
token: app.config.DISCORD_TOKEN,
|
||||
})
|
||||
|
||||
app.get('/timecheck', async (request, reply) => {
|
||||
app.get('/timecheck', async (_request, reply) => {
|
||||
reply.status(200).send({
|
||||
message: Date.now(),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user