Skip to content

Commit

Permalink
add some pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Nov 18, 2023
1 parent fb88809 commit b2945f9
Show file tree
Hide file tree
Showing 3 changed files with 253 additions and 3 deletions.
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"

pnpm lint-staged
16 changes: 15 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "",
"main": "index.js",
"scripts": {
"build": "tsup"
"build": "tsup",
"prepare": "husky install"
},
"keywords": [],
"author": "",
Expand All @@ -29,8 +30,21 @@
"devDependencies": {
"@types/node": "^20.8.10",
"aws-lambda": "^1.0.7",
"husky": "^8.0.0",
"lint-staged": "^15.1.0",
"prettier": "^3.1.0",
"tsup": "^7.2.0",
"typescript": "^5.2.2"
},
"prettier": {
"tabWidth": 2,
"trailingComma": "all",
"singleQuote": true,
"jsxSingleQuote": true,
"semi": false,
"printWidth": 80
},
"lint-staged": {
"*.{mjs,js,jsx,ts,tsx,json,md,graphql}": "prettier --write"
}
}
Loading

0 comments on commit b2945f9

Please sign in to comment.