|
| 1 | +// build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm) |
| 2 | +// ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs) |
| 3 | +// docs: Documentation only changes |
| 4 | +// feat: A new feature |
| 5 | +// fix: A bug fix |
| 6 | +// perf: A code change that improves performance |
| 7 | +// refactor: A code change that neither fixes a bug nor adds a feature |
| 8 | +// style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) |
| 9 | +// test: Adding missing tests or correcting existing tests |
| 10 | + |
| 11 | +module.exports = { |
| 12 | + extends: ["@commitlint/config-conventional"], |
| 13 | + rules: { |
| 14 | + "body-leading-blank": [1, "always"], |
| 15 | + "body-max-line-length": [2, "always", 100], |
| 16 | + "footer-leading-blank": [1, "always"], |
| 17 | + "footer-max-line-length": [2, "always", 100], |
| 18 | + "header-max-length": [2, "always", 100], |
| 19 | + "scope-case": [2, "always", "lower-case"], |
| 20 | + "subject-case": [2, "never", ["sentence-case", "start-case", "pascal-case", "upper-case"]], |
| 21 | + "subject-empty": [2, "never"], |
| 22 | + "subject-full-stop": [2, "never", "."], |
| 23 | + "type-case": [2, "always", "lower-case"], |
| 24 | + "type-empty": [2, "never"], |
| 25 | + "type-enum": [ |
| 26 | + 2, |
| 27 | + "always", |
| 28 | + [ |
| 29 | + "build", |
| 30 | + "chore", |
| 31 | + "ci", |
| 32 | + "docs", |
| 33 | + "feat", |
| 34 | + "fix", |
| 35 | + "perf", |
| 36 | + "refactor", |
| 37 | + "revert", |
| 38 | + "style", |
| 39 | + "test", |
| 40 | + "translation", |
| 41 | + "security", |
| 42 | + "changeset", |
| 43 | + ], |
| 44 | + ], |
| 45 | + }, |
| 46 | +}; |
0 commit comments