From 00c269b0ed45de400f38ee76a316a297c16b9b12 Mon Sep 17 00:00:00 2001 From: Damian Krzeminski Date: Mon, 20 Jan 2025 09:33:30 -0700 Subject: [PATCH] enforce uniform code formatting during lint also add make format formats the sources according to biome.json settings --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1e6228be..648ee030 100644 --- a/Makefile +++ b/Makefile @@ -77,7 +77,10 @@ node_modules: package.json pnpm-lock.yaml .NOTPARALLEL: node_modules lint: | node_modules - $(NODE_BIN)/biome lint $(LINT_SRC) + $(NODE_BIN)/biome check $(LINT_SRC) + +format: | node_modules + $(NODE_BIN)/biome format --write $(LINT_SRC) test: | node_modules node --test $(TESTS) @@ -119,4 +122,4 @@ distclean: clean distclean: rm -rf node_modules -.PHONY: all test build dist clean distclean +.PHONY: all test build dist clean distclean lint format