Skip to content
Snippets Groups Projects
Commit 2c4f2d8e authored by Yi Ding's avatar Yi Ding
Browse files

pre-commit hook for linting

parent 84230f0b
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
pnpm lint
......@@ -5,7 +5,8 @@
"dev": "turbo run dev",
"lint": "turbo run lint",
"test": "turbo run test",
"format": "prettier --write \"**/*.{ts,tsx,md}\""
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"prepare": "husky install"
},
"devDependencies": {
"@turbo/gen": "^1.9.7",
......@@ -16,7 +17,8 @@
"prettier": "^2.5.1",
"prettier-plugin-tailwindcss": "^0.3.0",
"ts-jest": "^29.1.0",
"turbo": "latest"
"turbo": "latest",
"husky": "^8.0.0"
},
"packageManager": "pnpm@7.15.0",
"name": "llamascript"
......
......@@ -20,6 +20,9 @@ importers:
eslint-config-custom:
specifier: workspace:*
version: link:packages/eslint-config-custom
husky:
specifier: ^8.0.0
version: 8.0.0
jest:
specifier: ^29.5.0
version: 29.5.0(@types/node@18.6.0)
......@@ -3052,6 +3055,12 @@ packages:
engines: {node: '>=14.18.0'}
dev: false
/husky@8.0.0:
resolution: {integrity: sha512-4qbE/5dzNDNxFEkX9MNRPKl5+omTXQzdILCUWiqG/lWIAioiM5vln265/l6I2Zx8gpW8l1ukZwGQeCFbBZ6+6w==}
engines: {node: '>=14'}
hasBin: true
dev: true
/iconv-lite@0.4.24:
resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==}
engines: {node: '>=0.10.0'}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment