mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
refactor: use eslint-config-neon for packages. (#8579)
Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { createServer } from 'node:http';
|
||||
import process from 'node:process';
|
||||
import { proxyRequests } from '@discordjs/proxy';
|
||||
import { REST } from '@discordjs/rest';
|
||||
|
||||
@@ -11,5 +12,5 @@ const api = new REST({ rejectOnRateLimit: () => true, retries: 0 }).setToken(pro
|
||||
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||
const server = createServer(proxyRequests(api));
|
||||
|
||||
const port = parseInt(process.env.PORT ?? '8080', 10);
|
||||
const port = Number.parseInt(process.env.PORT ?? '8080', 10);
|
||||
server.listen(port, () => console.log(`Listening on port ${port}`));
|
||||
|
||||
Reference in New Issue
Block a user