mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-15 21:04:56 +00:00
8
.husky/commit-msg
Normal file
8
.husky/commit-msg
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
npx --no-install commitlint --edit "$1"
|
||||||
|
|
||||||
|
# Check if commit message contains Signed-off-by line
|
||||||
|
if ! grep -q "^Signed-off-by:" "$1"; then
|
||||||
|
echo "Commit message must contain a 'Signed-off-by:' line."
|
||||||
|
echo "Please use 'git commit --signoff' or add a Signed-off-by line to your commit message."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
2
.husky/pre-commit
Normal file
2
.husky/pre-commit
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
npm run lint
|
||||||
|
npm run test
|
||||||
869
package-lock.json
generated
869
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
30
package.json
30
package.json
@@ -14,15 +14,18 @@
|
|||||||
"container": "npm run assets && go run ./cmd/containerbuild",
|
"container": "npm run assets && go run ./cmd/containerbuild",
|
||||||
"package": "go tool yeet",
|
"package": "go tool yeet",
|
||||||
"lint": "make lint",
|
"lint": "make lint",
|
||||||
"prepare": "go mod download",
|
"prepare": "husky && go mod download",
|
||||||
"format": "prettier -w . 2>&1 >/dev/null"
|
"format": "prettier -w . 2>&1 >/dev/null && go run goimports -w ."
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@commitlint/cli": "^20.4.1",
|
||||||
|
"@commitlint/config-conventional": "^20.4.1",
|
||||||
"cssnano": "^7.1.2",
|
"cssnano": "^7.1.2",
|
||||||
"cssnano-preset-advanced": "^7.0.10",
|
"cssnano-preset-advanced": "^7.0.10",
|
||||||
"esbuild": "^0.27.2",
|
"esbuild": "^0.27.2",
|
||||||
|
"husky": "^9.1.7",
|
||||||
"playwright": "^1.52.0",
|
"playwright": "^1.52.0",
|
||||||
"postcss-cli": "^11.0.1",
|
"postcss-cli": "^11.0.1",
|
||||||
"postcss-import": "^16.1.1",
|
"postcss-import": "^16.1.1",
|
||||||
@@ -34,6 +37,27 @@
|
|||||||
"@aws-crypto/sha256-js": "^5.2.0",
|
"@aws-crypto/sha256-js": "^5.2.0",
|
||||||
"preact": "^10.28.2"
|
"preact": "^10.28.2"
|
||||||
},
|
},
|
||||||
|
"commitlint": {
|
||||||
|
"extends": [
|
||||||
|
"@commitlint/config-conventional"
|
||||||
|
],
|
||||||
|
"rules": {
|
||||||
|
"body-max-line-length": [
|
||||||
|
2,
|
||||||
|
"always",
|
||||||
|
99999
|
||||||
|
],
|
||||||
|
"footer-max-line-length": [
|
||||||
|
2,
|
||||||
|
"always",
|
||||||
|
99999
|
||||||
|
],
|
||||||
|
"signed-off-by": [
|
||||||
|
2,
|
||||||
|
"always"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
"prettier": {
|
"prettier": {
|
||||||
"singleQuote": false,
|
"singleQuote": false,
|
||||||
"tabWidth": 2,
|
"tabWidth": 2,
|
||||||
@@ -41,4 +65,4 @@
|
|||||||
"trailingComma": "all",
|
"trailingComma": "all",
|
||||||
"printWidth": 80
|
"printWidth": 80
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user