Skip to content

Commit

Permalink
chore: setup lint staged
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Apr 5, 2024
1 parent 21dcfce commit 7b576fd
Show file tree
Hide file tree
Showing 2 changed files with 176 additions and 1 deletion.
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"scripts": {
"build": "nuxi build && unbuild",
"dev": "nuxi dev",
"prepare": "nuxi prepare",
"prepare": "nuxi prepare && npx simple-git-hooks",
"start": "node bin.mjs",
"prepack": "pnpm build",
"lint": "nuxi prepare && eslint .",
Expand Down Expand Up @@ -61,11 +61,19 @@
"eslint": "^9.0.0-rc.0",
"floating-vue": "^5.2.2",
"fuse.js": "^7.0.0",
"lint-staged": "^15.2.2",
"nuxt": "^3.11.1",
"nuxt-eslint-auto-explicit-import": "^0.0.2",
"nuxt-shiki": "^0.3.0",
"simple-git-hooks": "^2.11.1",
"typescript": "^5.4.3",
"unbuild": "^2.0.0",
"vue-tsc": "^2.0.7"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
},
"lint-staged": {
"*": "eslint --fix"
}
}
167 changes: 167 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 7b576fd

Please sign in to comment.