Skip to content

Commit

Permalink
fix: husky
Browse files Browse the repository at this point in the history
  • Loading branch information
dineug committed Sep 21, 2024
1 parent c73d1da commit 2361637
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
5 changes: 1 addition & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm lint-staged
pnpm lint-staged
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
"test": "nx run-many -t test",
"nx:clear": "nx reset",
"nx:graph": "nx graph",
"prepare": "husky install",
"prepare": "husky",
"format": "npm run format:eslint && npm run format:prettier",
"format:eslint": "eslint --ignore-path .gitignore \"**/*.{js,ts}\" --fix",
"format:prettier": "prettier \"**/*.{js,ts}\" --write",
"lint": "eslint \"**/*.{js,ts}\""
"format:eslint": "eslint --ignore-path .gitignore \"**/*.{js,ts,tsx}\" --fix",
"format:prettier": "prettier \"**/*.{js,ts,tsx}\" --write",
"lint": "eslint \"**/*.{js,ts,tsx}\""
},
"resolutions": {
"typescript": "5.4.5"
Expand All @@ -51,7 +51,7 @@
"nx": "18.2.4"
},
"lint-staged": {
"**/*.{js,ts}": [
"**/*.{js,ts,tsx}": [
"eslint --fix",
"prettier --write"
]
Expand Down
7 changes: 6 additions & 1 deletion pnpm-lock.yaml

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

0 comments on commit 2361637

Please sign in to comment.