Skip to content

Commit 70ec893

Browse files
committed
Make githook optional, remove husky
1 parent 29a9661 commit 70ec893

File tree

4 files changed

+10
-19
lines changed

4 files changed

+10
-19
lines changed

.githooks/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Using githooks
2+
3+
This repository provides an optional pre-commit hook to run `lint-staged` on project files, install via NPM.
4+
5+
To set up the git hooks locally:
6+
7+
```
8+
git config --local core.hooksPath .githooks
9+
```
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
32

43
npx lint-staged

package-lock.json

Lines changed: 0 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"@testing-library/user-event": "^14.5.2",
2020
"autoprefixer": "^10.4.19",
2121
"esbuild": "^0.20.1",
22-
"husky": "^8.0.3",
2322
"jest-environment-jsdom": "^29.7.0",
2423
"lint-staged": "^15.2.9",
2524
"postcss": "^8.4.38",
@@ -35,8 +34,7 @@
3534
"scripts": {
3635
"build": "bin/vite build",
3736
"pretest": "RAILS_ENV=test bin/rails fixtures:html",
38-
"test": "vitest",
39-
"prepare": "husky install"
37+
"test": "vitest"
4038
},
4139
"type": "module"
4240
}

0 commit comments

Comments
 (0)