Skip to content

Commit c84e312

Browse files
committed
feat: Add prettier Makefile target to format files.
1 parent 6b283be commit c84e312

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export
1212

1313

1414
ESLINT ?= npx eslint
15+
PRETTIER ?= npx prettier
1516
YARN ?= npx yarn
1617

1718
PACKAGE_DEV=@patternslib/dev
@@ -43,6 +44,11 @@ eslint: install
4344
$(ESLINT) ./src
4445

4546

47+
.PHONY: prettier
48+
prettier: install
49+
$(PRETTIER) --write .
50+
51+
4652
.PHONY: check
4753
check: install eslint
4854
$(YARN) run test

0 commit comments

Comments
 (0)