Skip to content

Commit

Permalink
chore(deps-dev): add husky + commitlint
Browse files Browse the repository at this point in the history
kanadgupta committed Feb 10, 2023

Verified

This commit was signed with the committer’s verified signature.
kanadgupta Kanad Gupta
1 parent 266787d commit 73fce60
Showing 3 changed files with 805 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx commitlint --edit $1
775 changes: 775 additions & 0 deletions package-lock.json
26 changes: 26 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -64,6 +64,8 @@
"validator": "^13.7.0"
},
"devDependencies": {
"@commitlint/cli": "^17.4.2",
"@commitlint/config-conventional": "^17.4.2",
"@readme/better-ajv-errors": "^1.5.0",
"@readme/eslint-config": "^10.3.1",
"@readme/oas-examples": "^5.3.0",
@@ -84,6 +86,7 @@
"@types/validator": "^13.7.6",
"ajv": "^8.11.0",
"eslint": "^8.29.0",
"husky": "^8.0.0",
"jest": "^29.0.3",
"jest-extended": "^3.0.0",
"js-yaml": "^4.1.0",
@@ -104,6 +107,7 @@
"postversion": "git tag $npm_package_version && ./bin/set-major-version-tag.js",
"prebuild": "rm -rf dist/",
"prepack": "npm run build",
"prepare": "husky install",
"pretest": "npm run lint && npm run lint-docs",
"prettier": "prettier --list-different \"./**/**.{md,js,ts}\"",
"prettier:docs": "prettier --list-different \"./**/**.md\"",
@@ -114,5 +118,27 @@
"test": "jest --coverage",
"version": "npm run release && git add CHANGELOG.md"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"body-max-line-length": [
0,
"always",
"Infinity"
],
"footer-max-line-length": [
0,
"always",
"Infinity"
],
"scope-case": [
2,
"never",
"upper-case"
]
}
},
"prettier": "@readme/eslint-config/prettier"
}

0 comments on commit 73fce60

Please sign in to comment.