Skip to content

Commit

Permalink
Simplify Prettier use
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgo committed Jul 30, 2020
1 parent d759bd1 commit a5a4dfe
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,15 @@ coverage: build # measures test coverage

fix: # runs the fixers
tslint --project . --fix
prettier --write "src/**/*.ts"
prettier --write "test/**/*.ts"
prettier --write "*.md"
prettier --write "*.yml"
prettier --write "*.json"
node_modules/.bin/prettier --write .

help: # prints all make targets
@cat Makefile | grep '^[^ ]*:' | grep -v '.PHONY' | grep -v help | sed 's/:.*#/#/' | column -s "#" -t

lint: # runs the linters
node_modules$/.bin$/tsc --noEmit
node_modules/.bin/tslint --project .
node_modules/.bin/prettier -l "src/**/*.ts"
node_modules/.bin/prettier -l "test/**/*.ts"
node_modules/.bin/prettier -l "*.md"
node_modules/.bin/prettier -l "*.yml"
node_modules/.bin/prettier -l "*.json"
node_modules/.bin/prettier -l .

setup: # sets up the installation on this machine
node_modules/o-tools/bin/check-paths
Expand Down

0 comments on commit a5a4dfe

Please sign in to comment.