Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bunx commitlint --edit "$1"

3 changes: 1 addition & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
npx lint-staged

bunx lint-staged
1 change: 1 addition & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
"schematicCollections": [
"angular-eslint"
],
"packageManager": "bun",
"analytics": false
}
}
2,483 changes: 2,483 additions & 0 deletions bun.lock

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
module.exports = {
extends: ["@commitlint/config-conventional"],
rules: {
"type-enum": [
2,
"always",
[
"feat", // New feature
"fix", // Bug fix
"docs", // Documentation update
"style", // Code style (formatting, missing semicolons, etc.)
"refactor", // Code refactoring (no feature changes)
"perf", // Performance improvements
"test", // Adding tests
"chore", // Build process, CI/CD, dependencies
"revert" // Reverting changes
]
],
"scope-empty": [2, "never"], // Scope must always be present
"subject-case": [
2,
"always",
["sentence-case", "start-case", "lower-case"] // Enforce casing
],
"subject-empty": [2, "never"], // Prevent empty subjects
"header-max-length": [2, "always", 100], // Max length of the commit message header
"body-leading-blank": [2, "always"], // Enforce blank line before the body
"footer-leading-blank": [2, "always"], // Enforce blank line before footer
"body-max-line-length": [2, "always", 200] // Set max length for body lines
}
};
Loading