chore: add husky and commit-hook to use prettier

This commit is contained in:
Mathias Schopmans
2024-02-09 08:42:18 +01:00
committed by Mathias Schopmans
parent 064918ff4d
commit f15164c5cd
3 changed files with 689 additions and 1 deletions

View File

@@ -7,7 +7,8 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
"fix": "prettier . --write"
"fix": "prettier . --write",
"prepare": "husky"
},
"dependencies": {
"next": "14.1.0",
@@ -21,7 +22,12 @@
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.1.0",
"husky": "^9.0.10",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"typescript": "^5"
},
"lint-staged": {
"**/*": "prettier --write --ignore-unknown"
}
}