From 6e502d885423a20e894328a62ae269b0ad8b2856 Mon Sep 17 00:00:00 2001 From: Jack Hickey <133868041+nginx-jack@users.noreply.github.com> Date: Fri, 5 Sep 2025 11:59:09 +0100 Subject: [PATCH] Biome: Set config to root, remove config path --- Makefile | 7 +++---- biome.json | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 700ba6f1..045484a8 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,4 @@ BIOME_BASE_CMD := $(if $(shell which biome),biome,npx @biomejs/biome@2.2.2) -BIOME_CONFIG_PATH := --config-path="biome.json" WRITE_FLAG := --write .PHONY: list help @@ -26,11 +25,11 @@ ifeq ($(BIOME_ARGS), write) endif biome-format: - $(BIOME_BASE_CMD) format $(BIOME_CONFIG_PATH) $(FLAG) + $(BIOME_BASE_CMD) format $(FLAG) biome-lint: - $(BIOME_BASE_CMD) lint $(BIOME_CONFIG_PATH) $(FLAG) + $(BIOME_BASE_CMD) lint $(FLAG) biome-all: - $(BIOME_BASE_CMD) check $(BIOME_CONFIG_PATH) $(FLAG) + $(BIOME_BASE_CMD) check $(FLAG) setup-pre-commit: @if ! command -v pre-commit &> /dev/null; then \ diff --git a/biome.json b/biome.json index 263e8cbb..9e77ecd6 100644 --- a/biome.json +++ b/biome.json @@ -1,6 +1,6 @@ { "$schema": "https://biomejs.dev/schemas/2.2.2/schema.json", - "root": false, + "root": true, "vcs": { "enabled": true, "clientKind": "git",