chore: add husky and commit-hook to use prettier
This commit is contained in:
committed by
Mathias Schopmans
parent
064918ff4d
commit
f15164c5cd
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user