Skip to content

Commit

Permalink
feat: add simple-git-hooks lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
yzh990918 committed May 11, 2023
1 parent 6965a65 commit 65e6f9c
Show file tree
Hide file tree
Showing 2 changed files with 222 additions and 30 deletions.
13 changes: 11 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"astro": "astro",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx,.astro",
"lint:fix": "eslint . --ext .js,.jsx,.ts,.tsx,.astro --fix",
"release": "bumpp"
"release": "bumpp",
"postinstall": "npx simple-git-hooks"
},
"dependencies": {
"@astrojs/netlify": "2.0.0",
Expand Down Expand Up @@ -66,8 +67,16 @@
"@unocss/preset-icons": "^0.50.6",
"@unocss/preset-typography": "^0.50.6",
"eslint-plugin-astro": "^0.24.0",
"lint-staged": "^13.2.2",
"punycode": "^2.3.0",
"simple-git-hooks": "^2.8.1",
"unocss": "^0.50.6",
"vite-plugin-pwa": "^0.14.7"
}
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
},
"lint-staged": {
"*": "pnpm lint:fix"
}
}
Loading

0 comments on commit 65e6f9c

Please sign in to comment.