Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aggiunge automazione per formattare il codice prima di ogni commit #115

Merged
merged 12 commits into from
Sep 27, 2023
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"

npm run format
16 changes: 16 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"scripts": {
"format": "prettier --write ."
"format": "prettier --write .",
"prepare": "husky install"
elgorditosalsero marked this conversation as resolved.
Show resolved Hide resolved
},
"devDependencies": {
"prettier": "^3.0.2"
"prettier": "^3.0.2",
"husky": "^8.0.0"
}
}