From 599eda8e433e19bc2b7eca0cdce8b20dee991e6a Mon Sep 17 00:00:00 2001 From: risu729 <79110363+risu729@users.noreply.github.com> Date: Thu, 14 Mar 2024 23:12:50 +0800 Subject: [PATCH] chore(biome.jsonc): disable colliding rule --- biome.jsonc | 4 +++- src/embeds.ts | 2 +- src/util/index.ts | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) delete mode 100644 src/util/index.ts diff --git a/biome.jsonc b/biome.jsonc index fe08bdf..df6ab89 100644 --- a/biome.jsonc +++ b/biome.jsonc @@ -20,7 +20,9 @@ "noConsole": "off", // This rule reports bun as an undeclared dependency // ref: https://github.com/biomejs/biome/issues/2074 - "noUndeclaredDependencies": "off" + "noUndeclaredDependencies": "off", + // This rule collides with lint/nursery/noBarrelFile + "useImportRestrictions": "off" } } }, 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 90d8345..0000000 --- a/src/util/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { appendInvisible, decodeAppendedInvisible } from "./invisible";