@@ -391,7 +391,7 @@ BOLD := $(shell tput bold 2>/dev/null)
391
391
GREEN := $(shell tput setaf 2 2>/dev/null)
392
392
RESET := $(shell tput sgr0 2>/dev/null)
393
393
394
- fmt : fmt/eslint fmt/prettier fmt/terraform fmt/shfmt fmt/go
394
+ fmt : fmt/ts fmt/terraform fmt/shfmt fmt/go
395
395
.PHONY : fmt
396
396
397
397
fmt/go :
@@ -401,22 +401,18 @@ fmt/go:
401
401
go run mvdan.cc/gofumpt@v0.4.0 -w -l .
402
402
.PHONY : fmt/go
403
403
404
- fmt/eslint :
405
- echo " $( GREEN) ==>$( RESET) $( BOLD) fmt/eslint$( RESET) "
406
- cd site
407
- pnpm run lint:fix
408
- .PHONY : fmt/eslint
409
-
410
- fmt/prettier :
411
- echo " $( GREEN) ==>$( RESET) $( BOLD) fmt/prettier$( RESET) "
404
+ fmt/ts :
405
+ echo " $( GREEN) ==>$( RESET) $( BOLD) fmt/ts$( RESET) "
412
406
cd site
413
407
# Avoid writing files in CI to reduce file write activity
414
408
ifdef CI
409
+ pnpm run lint
415
410
pnpm run format:check
416
411
else
412
+ pnpm run lint:fix
417
413
pnpm run format
418
414
endif
419
- .PHONY : fmt/prettier
415
+ .PHONY : fmt/ts
420
416
421
417
fmt/terraform : $(wildcard * .tf)
422
418
echo " $( GREEN) ==>$( RESET) $( BOLD) fmt/terraform$( RESET) "
@@ -497,7 +493,6 @@ gen: \
497
493
provisioner/terraform/testdata/version \
498
494
site/.prettierrc.yaml \
499
495
site/.prettierignore \
500
- site/.eslintignore \
501
496
site/e2e/provisionerGenerated.ts \
502
497
site/src/theme/icons.json \
503
498
examples/examples.gen.json \
@@ -528,7 +523,6 @@ gen/mark-fresh:
528
523
.prettierignore \
529
524
site/.prettierrc.yaml \
530
525
site/.prettierignore \
531
- site/.eslintignore \
532
526
site/e2e/provisionerGenerated.ts \
533
527
site/src/theme/icons.json \
534
528
examples/examples.gen.json \
@@ -737,7 +731,7 @@ site/.prettierrc.yaml: .prettierrc.yaml
737
731
# https://github.com/prettier/prettier/issues/8048
738
732
# https://github.com/prettier/prettier/issues/8506
739
733
# https://github.com/prettier/prettier/issues/8679
740
- site/.eslintignore site/. prettierignore : .prettierignore Makefile
734
+ site/.prettierignore : .prettierignore Makefile
741
735
rm -f " $@ "
742
736
touch " $@ "
743
737
# Skip generated by header, inherit `.prettierignore` header as-is.
0 commit comments