Skip to content

Commit

Permalink
Update prettier ignore. Add husky for fomatting before commit
Browse files Browse the repository at this point in the history
  • Loading branch information
wajeshubham committed Jul 16, 2023
1 parent c1f98f7 commit a80542d
Show file tree
Hide file tree
Showing 3 changed files with 238 additions and 5 deletions.
9 changes: 8 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/.vscode
/node_modules
./dist
./dist

*.yml
*.yaml

*.env
.env
.env.*
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
"scripts": {
"start": "nodemon -r dotenv/config src/index.js"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/hiteshchoudhary/apihub.git"
Expand Down Expand Up @@ -51,7 +56,9 @@
"yaml": "^2.3.1"
},
"devDependencies": {
"husky": "^8.0.3",
"nodemon": "^2.0.22",
"prettier": "^3.0.0"
"prettier": "^3.0.0",
"pretty-quick": "^3.1.3"
}
}
Loading

0 comments on commit a80542d

Please sign in to comment.