12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- {
- "extends": ["@commitlint/config-conventional"],
- "rules": {
- "type-enum": [
- 2,
- "always",
- [
- "feat",
- "fix",
- "docs",
- "style",
- "refactor",
- "test",
- "chore",
- "revert",
- "ci",
- "types",
- "perf",
- "tmp",
- "wip",
- "update",
- "build",
- "release",
- "scripts"
- ]
- ],
- "type-case": [2, "always", "lower-case"],
- "type-empty": [2, "never"],
- "subject-empty": [2, "never"],
- "subject-max-length": [2, "always", 100],
- "header-max-length": [2, "always", 100],
- "subject-min-length": [2, "always", 2],
- "subject-full-stop": [2, "never", "."],
- "subject-case": [
- 2,
- "always",
- [
- "lower-case",
- "upper-case",
- "sentence-case",
- "title-case",
- "camel-case",
- "pascal-case",
- "kebab-case",
- "snake-case",
- "start-case"
- ]
- ]
- },
- "parserPreset": {
- "headerPattern": "/^(\\u3010([\\u4e00-\\u9fa5\\w]+)\\u3011)?\\s*(\\w+)(?:\\((.*)\\))?:?\\s*(.*)$/",
- "headerCorrespondence": ["type", "scope", "subject", "ticket"],
- "issuePrefixes": ["#"]
- }
- }
|