diff --git a/biome.json b/biome.json deleted file mode 100644 index 6fa66c8..0000000 --- a/biome.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$schema": "./node_modules/@biomejs/biome/configuration_schema.json", - "vcs": { - "enabled": true, - "clientKind": "git", - "useIgnoreFile": true - }, - "files": { - "ignoreUnknown": true - }, - "formatter": { - "formatWithErrors": true - }, - "linter": { - "rules": { - "all": true - } - }, - "json": { - "parser": { - "allowComments": true - } - } -} diff --git a/biome.jsonc b/biome.jsonc new file mode 100644 index 0000000..df6ab89 --- /dev/null +++ b/biome.jsonc @@ -0,0 +1,34 @@ +{ + "$schema": "./node_modules/@biomejs/biome/configuration_schema.json", + "vcs": { + "enabled": true, + "clientKind": "git", + "useIgnoreFile": true + }, + "files": { + "ignoreUnknown": true + }, + "formatter": { + "formatWithErrors": true + }, + "linter": { + "rules": { + "all": true, + "nursery": { + "all": true, + // This is a server-side application + "noConsole": "off", + // This rule reports bun as an undeclared dependency + // ref: https://github.com/biomejs/biome/issues/2074 + "noUndeclaredDependencies": "off", + // This rule collides with lint/nursery/noBarrelFile + "useImportRestrictions": "off" + } + } + }, + "json": { + "parser": { + "allowComments": true + } + } +} diff --git a/bun.lockb b/bun.lockb index 14abb91..d01cf9c 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 9239468..ce47b72 100644 --- a/package.json +++ b/package.json @@ -1,24 +1,25 @@ { - "$schema": "https://json.schemastore.org/package.json", - "name": "gdrive4d", - "private": true, - "scripts": { - "start": "bun src/main.ts", - "start:screen": "screen -DRS gdrive4d bun start", - "check": "biome check --apply-unsafe ." - }, - "dependencies": { - "@googleapis/drive": "8.7.0", - "consola": "3.2.3", - "discord.js": "14.14.1", - "normalize-url": "8.0.1" - }, - "devDependencies": { - "@biomejs/biome": "1.5.3", - "@tsconfig/bun": "1.0.4", - "@tsconfig/strictest": "2.0.3", - "@types/bun": "1.0.8", - "ignore-sync": "7.0.1", - "typescript": "5.4.2" - } + "$schema": "https://json.schemastore.org/package.json", + "name": "gdrive4d", + "private": true, + "scripts": { + "start": "bun src/main.ts", + "start:screen": "screen -DRS gdrive4d bun start", + "check": "biome check --apply ." + }, + "dependencies": { + "@googleapis/drive": "8.7.0", + "consola": "3.2.3", + "discord.js": "14.14.1", + "gaxios": "6.3.0", + "normalize-url": "8.0.1" + }, + "devDependencies": { + "@biomejs/biome": "1.6.1", + "@tsconfig/bun": "1.0.4", + "@tsconfig/strictest": "2.0.3", + "@types/bun": "1.0.8", + "ignore-sync": "7.0.1", + "typescript": "5.4.2" + } } diff --git a/src/embeds.ts b/src/embeds.ts index e9407aa..9181a39 100644 --- a/src/embeds.ts +++ b/src/embeds.ts @@ -15,7 +15,7 @@ import normalizeUrl, { type Options as NormalizeUrlOptions, } from "normalize-url"; import { driveClient, fileTypes } from "./gdrive"; -import { appendInvisible, decodeAppendedInvisible } from "./util"; +import { appendInvisible, decodeAppendedInvisible } from "./util/invisible"; /** * Extract Google Drive file IDs from a string. diff --git a/src/util/index.ts b/src/util/index.ts deleted file mode 100644 index b4be14f..0000000 --- a/src/util/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./invisible"; diff --git a/tsconfig.json b/tsconfig.json index 167b993..5f638cb 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,9 @@ { "$schema": "https://json.schemastore.org/tsconfig", - "extends": ["@tsconfig/bun/tsconfig.json", "@tsconfig/strictest/tsconfig.json"], + "extends": [ + "@tsconfig/bun/tsconfig.json", + "@tsconfig/strictest/tsconfig.json" + ], "compilerOptions": { "allowJs": true },