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:
Fleny
2024-07-13 13:05:02 -05:00
committed by GitHub
parent 7b3bd76c82
commit 919474069d
132 changed files with 722 additions and 4993 deletions
-1
View File
@@ -16,7 +16,6 @@ const oldVersion = file.version
file.version = `${oldVersion.split('-')[0]}-next.${commitHash}`
if (file.dependencies) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
Object.keys(file.dependencies).forEach((dependency) => {
if (dependency.startsWith('@discordeno/')) file.dependencies[dependency] = file.version
})
-1
View File
@@ -2,7 +2,6 @@ import fs from 'node:fs/promises'
const benchmarkData = await fetch(`https://raw.githubusercontent.com/discordeno/discordeno/benchies/benchmarksResult/data.js`)
.then(async (res) => await res.text())
.then((text) => JSON.parse(text.slice(24)))
// eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
// const commitSha = await fs.readFile('./sha', 'utf-8')
const results = JSON.parse(await fs.readFile('./data.json', 'utf-8'))
const benchmarks = results.entries.Benchmark
+1 -1
View File
@@ -118,7 +118,7 @@ function generateFromSpec() {
finalTypings.push(interfacey.join('\n'))
}
fs.writeFileSync('./packages/types/src/discord.ts', finalTypings.join('\n\n'), function (err, result) {
fs.writeFileSync('./packages/types/src/discord.ts', finalTypings.join('\n\n'), function (err, _result) {
if (err) throw err
})
}