Skip to content

Commit

Permalink
feat: husky and lint staged
Browse files Browse the repository at this point in the history
  • Loading branch information
hywax committed Dec 30, 2023
1 parent 65e33a7 commit 4dcee7e
Show file tree
Hide file tree
Showing 3 changed files with 174 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"preview": "nuxi preview",
"postinstall": "nuxi prepare",
"lint": "eslint . --fix",
"typecheck": "nuxi typecheck"
"typecheck": "nuxi typecheck",
"prepare": "husky install"
},
"dependencies": {
"@vueuse/nuxt": "^10.7.0",
Expand All @@ -22,10 +23,15 @@
"@nuxtjs/tailwindcss": "^6.10.1",
"@types/node": "^20.10.6",
"eslint": "^8.56.0",
"husky": "^8.0.3",
"lint-staged": "^15.2.0",
"nuxt": "^3.9.0",
"nuxt-site-config": "^2.1.3",
"nuxt-site-config-kit": "^2.1.3",
"typescript": "^5.3.3",
"vue-tsc": "^1.8.27"
},
"lint-staged": {
"*.ts": "pnpm run lint"
}
}
163 changes: 163 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 4dcee7e

Please sign in to comment.