Skip to content

Commit 6e502d8

Browse files
committed
Biome: Set config to root, remove config path
1 parent 12a08ef commit 6e502d8

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
BIOME_BASE_CMD := $(if $(shell which biome),biome,npx @biomejs/[email protected])
2-
BIOME_CONFIG_PATH := --config-path="biome.json"
32
WRITE_FLAG := --write
43

54
.PHONY: list help
@@ -26,11 +25,11 @@ ifeq ($(BIOME_ARGS), write)
2625
endif
2726

2827
biome-format:
29-
$(BIOME_BASE_CMD) format $(BIOME_CONFIG_PATH) $(FLAG)
28+
$(BIOME_BASE_CMD) format $(FLAG)
3029
biome-lint:
31-
$(BIOME_BASE_CMD) lint $(BIOME_CONFIG_PATH) $(FLAG)
30+
$(BIOME_BASE_CMD) lint $(FLAG)
3231
biome-all:
33-
$(BIOME_BASE_CMD) check $(BIOME_CONFIG_PATH) $(FLAG)
32+
$(BIOME_BASE_CMD) check $(FLAG)
3433

3534
setup-pre-commit:
3635
@if ! command -v pre-commit &> /dev/null; then \

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://biomejs.dev/schemas/2.2.2/schema.json",
3-
"root": false,
3+
"root": true,
44
"vcs": {
55
"enabled": true,
66
"clientKind": "git",

0 commit comments

Comments
 (0)