Skip to content

Commit

Permalink
Merge pull request #24 from milktoastlab/add-lint-build-step
Browse files Browse the repository at this point in the history
Add lint build step to automate formatting check
  • Loading branch information
forbesus authored Jan 18, 2022
2 parents abb0148 + 8846c50 commit 305b8f9
Show file tree
Hide file tree
Showing 4 changed files with 292 additions and 168 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,5 @@ jobs:
run: yarn build
- name: Test
run: yarn test
- name: Lint
run: yarn lint-format
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"build": "tsc",
"start": "NODE_PATH=./dist/src NODE_ENV=production node dist/src/server.js",
"test": "jest --no-watchman",
"lint-format": "prettier -c ./src/**/*.{ts,tsx}",
"fix-format": "prettier -w ./src/**/*.{ts,tsx}"
"lint-format": "prettier -c ./src/**/*.ts",
"fix-format": "prettier -w ./src/**/*.ts"
},
"dependencies": {
"@discordjs/builders": "^0.8.1",
"axios": "^0.23.0",
"axios": "^0.25.0",
"discord.js": "^13.2.0",
"dotenv": "^10.0.0",
"express": "^4.17.1",
Expand Down
Loading

0 comments on commit 305b8f9

Please sign in to comment.