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:
@@ -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
|
||||
})
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user