Skip to content

Commit

Permalink
Prettier pre-commit hook (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
abulte authored Nov 10, 2023
1 parent f48e157 commit 89caf63
Show file tree
Hide file tree
Showing 9 changed files with 704 additions and 49 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ TODO.md
dist/
node_modules/
src/playground
.eslintcache
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ See [Vite Configuration Reference](https://vitejs.dev/config/).

```sh
npm install
# installs husky pre-commit hook
npm run prepare
```

### Compile and Hot-Reload for Development
Expand Down
Loading

0 comments on commit 89caf63

Please sign in to comment.