Skip to content

Commit

Permalink
enforce uniform code formatting during lint
Browse files Browse the repository at this point in the history
also add

    make format

formats the sources according to biome.json settings
  • Loading branch information
pirxpilot committed Jan 20, 2025
1 parent 595f40a commit 00c269b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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

0 comments on commit 00c269b

Please sign in to comment.