From b235293f39c3dad314afd8420aa412801d08e0f0 Mon Sep 17 00:00:00 2001 From: Alec Larson <1925840+aleclarson@users.noreply.github.com> Date: Tue, 2 Jul 2024 12:20:06 -0400 Subject: [PATCH 1/2] chore: fix json parsing with biome --- biome.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/biome.json b/biome.json index b20802b9..0d4a46f4 100644 --- a/biome.json +++ b/biome.json @@ -13,6 +13,11 @@ "indentWidth": 2, "indentStyle": "space" }, + "json": { + "parser": { + "allowComments": true + } + }, "javascript": { "formatter": { "arrowParentheses": "asNeeded", From 0358acbccb5108a2f699548c08eacc9af98c5ae9 Mon Sep 17 00:00:00 2001 From: Alec Larson <1925840+aleclarson@users.noreply.github.com> Date: Tue, 2 Jul 2024 12:21:07 -0400 Subject: [PATCH 2/2] chore: use `biome check` on typescript files only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …except when formatting. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f5440a55..a493183d 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "scripts": { "dev": "tsup --clean --watch --sourcemap", "build": "tsup --clean", - "lint": "tsc && biome check && pnpm -s dlx deno-bin@1.44.4 lint", + "lint": "tsc && biome check ./src ./tests ./benchmarks && pnpm -s dlx deno-bin@1.44.4 lint", "format": "biome check --fix --unsafe", "test": "vitest run --coverage", "test-single": "bash ./scripts/test-single.sh",