Skip to content

Commit

Permalink
Add yarn command for running lint and prettier with cache options
Browse files Browse the repository at this point in the history
To quickly fix all fixable issues.
Also turned off some prettier spam for this command.
Prettier cache is stored under node_modules so no need to gitignore that.
  • Loading branch information
Leitsi committed Oct 17, 2023
1 parent 483724a commit 38780c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ __snapshots__
*.swp
docker/*
!docker/docker-compose.custom.yml
test/hasura/.eslintcache
test/hasura/dist/*
test/hasura/latest-dataset.json
1 change: 1 addition & 0 deletions test/hasura/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"test-hsl": "HASURA_DATABASE_SCHEMA=hsl yarn test",
"ts:check": "tsc --noEmit",
"qa": "yarn lint && yarn prettier:check && yarn ts:check && yarn test",
"qa:fix": "yarn lint --fix --cache && yarn prettier --loglevel warn --cache",
"timetables-data-inserter:build": "tsc -p ./tsconfig-cli.json && tsc-alias -p ./tsconfig-cli.json",
"timetables-data-inserter:clean": "rm -rf ./dist",
"timetables-data-inserter:cli": "node dist/timetables-data-inserter/cli.js"
Expand Down

0 comments on commit 38780c9

Please sign in to comment.