{"name":"@commitlint/config-conventional","version":"21.2.0","keywords":["angular","commitlint","commitlint-config","conventional-changelog"],"author":{"name":"Mario Nebl","email":"hello@herebecode.com"},"license":"MIT","_id":"@commitlint/config-conventional@21.2.0","maintainers":[{"name":"marionebl","email":"hello@mario-nebl.de"},{"name":"martinhelmut","email":"info@martin-fieber.se"},{"name":"escapedcat","email":"npm@htmlcss.de"},{"name":"bycedric","email":"me@bycedric.com"}],"homepage":"https://commitlint.js.org/","bugs":{"url":"https://github.com/conventional-changelog/commitlint/issues"},"dist":{"shasum":"9ce2b1f5a24e94883ed1e4c5530fb1b8c1d531eb","tarball":"http://registry-npm.ywwl.com/@commitlint/config-conventional/download/@commitlint/config-conventional-21.2.0.tgz","fileCount":7,"integrity":"sha512-Qf8WRDVcyVd14if6VTWenebxFbKnVnbzPUJjlzjkyJGeHK2xCGd63Dr1XZzj0plXKQb9P0BfOxoc1HVeCo2BWQ==","signatures":[{"sig":"MEUCIFJtTqs3FsTyHZOvlgpCkOpiifIqJYmIK9PIUk0O0xywAiEA3ZVN4lQMfA92XGnTP3O2OQFS8g8Q3mz+OpOjFRQUD6U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18483,"size":4680,"noattachment":false,"key":"/@commitlint/config-conventional/-/@commitlint/config-conventional-21.2.0.tgz"},"main":"lib/index.js","type":"module","types":"./lib/index.d.ts","engines":{"node":">=22.12.0"},"gitHead":"1b4e5bc0e095294ad421b3ac83f6b66665429e60","scripts":{"pkg":"pkg-check","deps":"dep-check"},"_npmUser":{"name":"escapedcat","email":"npm@htmlcss.de"},"repository":{"url":"git+https://github.com/conventional-changelog/commitlint.git","type":"git","directory":"@commitlint/config-conventional"},"_npmVersion":"lerna/9.0.7/node@v22.19.0+arm64 (darwin)","description":"Shareable commitlint config enforcing conventional commits","directories":{},"_nodeVersion":"22.19.0","dependencies":{"@commitlint/types":"^21.2.0","conventional-changelog-conventionalcommits":"^10.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@commitlint/lint":"^21.2.0","@commitlint/utils":"^21.0.1"},"_npmOperationalInternal":{"tmp":"tmp/config-conventional_21.2.0_1782813236252_0.2326809245278325","host":"s3://npm-registry-packages-npm-production"},"readme":"# @commitlint/config-conventional\n\nLint your conventional commits\n\nShareable `commitlint` config enforcing [conventional commits](https://conventionalcommits.org/).\nUse with [@commitlint/cli](https://npm.im/@commitlint/cli) and [@commitlint/prompt-cli](https://npm.im/@commitlint/prompt-cli).\n\n## Getting started\n\n```sh\nnpm install --save-dev @commitlint/config-conventional @commitlint/cli\necho \"export default {extends: ['@commitlint/config-conventional']};\" > commitlint.config.js\n```\n\n## Beyond the specification\n\nThis config enforces the [Conventional Commits](https://conventionalcommits.org/) convention, plus a few stylistic rules the specification itself does not require.\nThe stylistic rules are inherited from the [Angular commit convention](https://github.com/angular/angular/blob/main/contributing-docs/commit-message-guidelines.md) commitlint originates from:\n\n- `header-max-length`, `body-max-line-length` and `footer-max-line-length` limit lines to 100 characters to keep messages readable in git tooling — body and footer lines containing URLs are exempt\n- `type-enum` restricts the type to the list below, while the specification allows any type\n- `type-case`, `subject-case` and `subject-full-stop` normalize style: lower-case types, no sentence-case, start-case, pascal-case or upper-case subjects, no trailing full-stop\n\nThese rules narrow the specification — they do not conflict with it.\nIf you prefer the plain specification, override the rules you do not want in your config:\n\n```js\nexport default {\n  extends: [\"@commitlint/config-conventional\"],\n  rules: {\n    \"body-max-line-length\": [0],\n    \"footer-max-line-length\": [0],\n  },\n};\n```\n\n## Rules\n\n### Problems\n\nThe following rules are considered problems for `@commitlint/config-conventional` and will yield a non-zero exit code when not met.\n\nConsult [Rules reference](https://commitlint.js.org/reference/rules) for a list of available rules.\n\n#### type-enum\n\n- **condition**: `type` is found in value\n- **rule**: `always`\n- **level**: `error`\n- **value**\n\n  ```\n  [\n    'build',\n    'chore',\n    'ci',\n    'docs',\n    'feat',\n    'fix',\n    'perf',\n    'refactor',\n    'revert',\n    'style',\n    'test'\n  ];\n  ```\n\n```sh\necho \"foo: some message\" # fails\necho \"fix: some message\" # passes\n```\n\n#### type-case\n\n- **description**: `type` is in case `value`\n- **rule**: `always`\n- **level**: `error`\n- **value**\n  ```\n  'lowerCase'\n  ```\n\n```sh\necho \"FIX: some message\" # fails\necho \"fix: some message\" # passes\n```\n\n#### type-empty\n\n- **condition**: `type` is empty\n- **rule**: `never`\n- **level**: `error`\n\n```sh\necho \": some message\" # fails\necho \"fix: some message\" # passes\n```\n\n#### subject-case\n\n- **condition**: `subject` is in one of the cases `['sentence-case', 'start-case', 'pascal-case', 'upper-case']`\n- **rule**: `never`\n- **level**: `error`\n\n```sh\necho \"fix(SCOPE): Some message\" # fails\necho \"fix(SCOPE): Some Message\" # fails\necho \"fix(SCOPE): SomeMessage\" # fails\necho \"fix(SCOPE): SOMEMESSAGE\" # fails\necho \"fix(scope): some message\" # passes\necho \"fix(scope): some Message\" # passes\n```\n\n#### subject-empty\n\n- **condition**: `subject` is empty\n- **rule**: `never`\n- **level**: `error`\n\n```sh\necho \"fix:\" # fails\necho \"fix: some message\" # passes\n```\n\n#### subject-full-stop\n\n- **condition**: `subject` ends with `value`\n- **rule**: `never`\n- **level**: `error`\n- **value**\n\n```\n'.'\n```\n\n```sh\necho \"fix: some message.\" # fails\necho \"fix: some message\" # passes\n```\n\n#### header-max-length\n\n- **condition**: `header` has `value` or less characters\n- **rule**: `always`\n- **level**: `error`\n- **value**\n\n```\n100\n```\n\n```sh\necho \"fix: some message that is way too long and breaks the line max-length by several characters\" # fails\necho \"fix: some message\" # passes\n```\n\n#### footer-leading-blank\n\n- **condition**: `footer` should have a leading blank line\n- **rule**: `always`\n- **level**: `warning`\n\n```sh\necho \"fix: some message\nBREAKING CHANGE: It will be significant\" # warning\n\necho \"fix: some message\n\nBREAKING CHANGE: It will be significant\" # passes\n```\n\n#### footer-max-line-length\n\n- **condition**: `footer` each line has `value` or less characters\n- **rule**: `always`\n- **level**: `error`\n- **value**\n\n```\n100\n```\n\n```sh\necho \"fix: some message\n\nBREAKING CHANGE: footer with multiple lines\nhas a message that is way too long and will break the line rule 'line-max-length' by several characters\" # fails\n\necho \"fix: some message\n\nBREAKING CHANGE: footer with multiple lines\nbut still no line is too long\" # passes\n```\n\n#### body-leading-blank\n\n- **condition**: `body` should have a leading blank line\n- **rule**: `always`\n- **level**: `warning`\n\n```sh\necho \"fix: some message\nbody\" # warning\n\necho \"fix: some message\n\nbody\" # passes\n```\n\n#### body-max-line-length\n\n- **condition**: `body` each line has `value` or less characters\n- **rule**: `always`\n- **level**: `error`\n- **value**\n\n```\n100\n```\n\n```sh\necho \"fix: some message\n\nbody with multiple lines\nhas a message that is way too long and will break the line rule 'line-max-length' by several characters\" # fails\n\necho \"fix: some message\n\nbody with multiple lines\nbut still no line is too long\" # passes\n```\n","publish_time":1782813236373,"_cnpm_publish_time":1782813236373,"dist-tags":{"latest":"21.2.4","release-v18":"18.6.3"}}