Skip to content

Commit

Permalink
build: replace lint-staged with nano-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Dec 29, 2023
1 parent 7d0b7be commit 3f3a58e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 148 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm lint-staged
pnpm nano-staged
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"test": "vitest run",
"test:cov": "vitest run --coverage"
},
"lint-staged": {
"nano-staged": {
"**/*": "prettier --write --ignore-unknown",
"*.{cjs,js,ts,vue}": "eslint --fix",
"package.json": "sort-package-json"
Expand All @@ -38,7 +38,7 @@
"eslint-config-vuepress": "^4.10.0",
"eslint-config-vuepress-typescript": "^4.10.0",
"husky": "^8.0.3",
"lint-staged": "^15.2.0",
"nano-staged": "^0.8.0",
"prettier": "^3.1.1",
"prettier-config-vuepress": "^4.4.0",
"rimraf": "^5.0.5",
Expand Down
159 changes: 14 additions & 145 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 3f3a58e

Please sign in to comment.