add eslint plugin unicorn

This commit is contained in:
MapleLeaf
2021-12-08 20:16:55 -06:00
parent 0953b4d831
commit 7acce161b5
9 changed files with 480 additions and 16 deletions

View File

@@ -1,10 +0,0 @@
import "dotenv/config.js"
import { raise } from "../src/helpers/raise.js"
function getEnv(name: string) {
return process.env[name] ?? raise(`Missing environment variable: ${name}`)
}
export const testBotToken = getEnv("TEST_BOT_TOKEN")
export const testGuildId = getEnv("TEST_GUILD_ID")
export const testChannelId = getEnv("TEST_CHANNEL_ID")