Skip to content

Commit

Permalink
chore: add simple-git-hooks, remove husky
Browse files Browse the repository at this point in the history
  • Loading branch information
steffans committed Aug 27, 2024
1 parent 5bc2308 commit c798fc1
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 33 deletions.
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/commit-msg

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

38 changes: 17 additions & 21 deletions package-lock.json

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

10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,27 @@
"type": "module",
"private": true,
"scripts": {
"prepare": "husky install",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"postinstall": "simple-git-hooks",
"prettier:check": "prettier . --check",
"prettier:write": "prettier . --write"
},
"lint-staged": {
"*.{md,js,json,css,php}": "prettier --write"
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged",
"commit-msg": "npx --no -- commitlint --edit \"$1\""
},
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@prettier/plugin-php": "^0.22.2",
"@prettier/plugin-xml": "^3.4.1",
"conventional-changelog-angular": "^8.0.0",
"conventional-changelog-cli": "^5.0.0",
"husky": "^8.0.0",
"lint-staged": "^15.2.7",
"prettier": "^3.3.3"
"prettier": "^3.3.3",
"simple-git-hooks": "^2.11.1"
}
}

0 comments on commit c798fc1

Please sign in to comment.