From d5f52760f1310d16dc6b1ba14436df134d2eb4ed Mon Sep 17 00:00:00 2001 From: NightKev <34855794+DayKev@users.noreply.github.com> Date: Tue, 17 Jun 2025 18:49:54 -0700 Subject: [PATCH] Disable `useJsonImportAttribute` rule and revert changes --- biome.jsonc | 2 +- src/plugins/i18n.ts | 2 +- test/sprites/pokemonSprite.test.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/biome.jsonc b/biome.jsonc index c1a44e8413f..61ef00a02b1 100644 --- a/biome.jsonc +++ b/biome.jsonc @@ -137,7 +137,7 @@ "noConstantBinaryExpression": "error", "noTsIgnore": "error", "noAwaitInLoop": "warn", - "useJsonImportAttribute": "error", + "useJsonImportAttribute": "off", // "Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'nodenext', or 'preserve'. ts(2823)" "useIndexOf": "error", "useObjectSpread": "info", "useNumericSeparators": "off", // TODO: enable? diff --git a/src/plugins/i18n.ts b/src/plugins/i18n.ts index 470aeaf69b7..7d3b30ed5b0 100644 --- a/src/plugins/i18n.ts +++ b/src/plugins/i18n.ts @@ -3,7 +3,7 @@ import i18next from "i18next"; import LanguageDetector from "i18next-browser-languagedetector"; import HttpBackend from "i18next-http-backend"; import processor, { KoreanPostpositionProcessor } from "i18next-korean-postposition-processor"; -import pkg from "../../package.json" with { type: "json" }; +import pkg from "../../package.json"; //#region Interfaces/Types diff --git a/test/sprites/pokemonSprite.test.ts b/test/sprites/pokemonSprite.test.ts index bd65d86d22a..be188503b1e 100644 --- a/test/sprites/pokemonSprite.test.ts +++ b/test/sprites/pokemonSprite.test.ts @@ -2,8 +2,8 @@ import { getAppRootDir } from "#test/sprites/spritesUtils"; import fs from "fs"; import path from "path"; import { beforeAll, describe, expect, it } from "vitest"; -import _masterlist from "../../public/images/pokemon/variant/_masterlist.json" with { type: "json" }; -import _exp_masterlist from "../../public/images/pokemon/variant/_exp_masterlist.json" with { type: "json" }; +import _masterlist from "../../public/images/pokemon/variant/_masterlist.json"; +import _exp_masterlist from "../../public/images/pokemon/variant/_exp_masterlist.json"; type PokemonVariantMasterlist = typeof _masterlist; type PokemonExpVariantMasterlist = typeof _exp_masterlist;