Skip to content

Commit e26ec81

Browse files
committed
chore: fix broken husky configuration
this will ensure we're running eslint and prettier before every commit
1 parent 85afb12 commit e26ec81

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

.husky/pre-commit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
33

44
npx lint-staged

package-lock.json

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

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"eslint-plugin-json": "^3.1.0",
2929
"eslint-plugin-prettier": "^3.4.0",
3030
"eslint-plugin-storybook": "^0.5.13",
31-
"husky": "^6.0.0",
31+
"husky": "^8.0.0",
3232
"hygen": "^6.1.0",
3333
"lint-staged": "^10.2.11",
3434
"prettier": "^2.3.2",
@@ -58,8 +58,7 @@
5858
"lint-staged": {
5959
"src/**/*.{ts,tsx}": [
6060
"eslint --fix",
61-
"prettier --write",
62-
"git add"
61+
"prettier --write"
6362
]
6463
}
6564
}

0 commit comments

Comments
 (0)