Skip to content

Commit

Permalink
chore: node version up & lefthook
Browse files Browse the repository at this point in the history
  • Loading branch information
kang-heewon committed Dec 12, 2024
1 parent 0666254 commit 4764ae6
Show file tree
Hide file tree
Showing 6 changed files with 172 additions and 411 deletions.
4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

10 changes: 0 additions & 10 deletions .lintstagedrc

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
22
26 changes: 26 additions & 0 deletions lefthook.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
pre-commit:
parallel: true
commands:
ts:
glob: "*.ts"
run: pnpm eslint --fix --quiet {staged_files}
tsx:
glob: "*.tsx"
run: pnpm eslint --fix --quiet {staged_files}
jsx:
glob: "*.jsx"
run: pnpm eslint --fix --quiet {staged_files}
js:
glob: "*.js"
run: pnpm eslint --fix --quiet {staged_files}
mdx:
glob: "*.mdx"
run: pnpm eslint --fix --quiet {staged_files}
json:
glob: "*.json"
run: pnpm eslint --fix --quiet {staged_files}

post-merge:
commands:
install:
run: pnpm install
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,18 @@
"dev": "turbo dev",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"lint": "turbo lint",
"prepare": "husky"
"prepare": "lefthook install"
},
"devDependencies": {
"@heewon.dev/eslint-config": "workspace:*",
"@heewon.dev/utils-tsconfig": "workspace:*",
"eslint": "8.57.0",
"husky": "9.0.11",
"lint-staged": "15.2.5",
"prettier": "3.2.5",
"lefthook": "1.9.0",
"turbo": "latest",
"typescript": "5.4.5"
"typescript": "5.7.2"
},
"packageManager": "pnpm@9.1.3",
"packageManager": "pnpm@9.15.0+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c",
"engines": {
"node": ">=20"
"node": ">=22"
}
}
Loading

0 comments on commit 4764ae6

Please sign in to comment.