Skip to content

Commit

Permalink
Add pre-commit as dep
Browse files Browse the repository at this point in the history
  • Loading branch information
low-earth-orbit committed Sep 8, 2024
1 parent ba3100f commit b871fea
Show file tree
Hide file tree
Showing 4 changed files with 199 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: npm run lint

- name: Run Prettier
run: npm run format
run: npm run prettier

- name: TypeScript check
run: npm run tsc
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Demo: [Try it here](https://whiteboard.leohong.dev)
## Features

- Canvas objects

- Pen & eraser
- Text fields
- Shapes
Expand Down
192 changes: 192 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@
"private": true,
"pre-commit": [
"lint",
"format",
"prettier",
"tsc"
],
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"format": "prettier --check .",
"prettier": "prettier --check .",
"format": "prettier --write .",
"tsc": "tsc --noEmit"
},
"dependencies": {
Expand Down Expand Up @@ -43,8 +44,9 @@
"eslint": "^8",
"eslint-config-next": "14.2.6",
"postcss": "^8",
"pre-commit": "^1.2.2",
"prettier": "3.3.3",
"tailwindcss": "^3.4.1",
"typescript": "^5.5.4"
}
}
}

0 comments on commit b871fea

Please sign in to comment.