{"id":19252737,"url":"https://github.com/morevm/commitlint-config","last_synced_at":"2026-05-16T09:32:24.494Z","repository":{"id":37046173,"uuid":"455963156","full_name":"MorevM/commitlint-config","owner":"MorevM","description":"Shareable commitlint configuration","archived":false,"fork":false,"pushed_at":"2023-08-05T14:27:11.000Z","size":563,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T08:03:17.948Z","etag":null,"topics":["commitlint","git","styleguide"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MorevM.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-05T19:16:40.000Z","updated_at":"2023-05-07T19:00:11.000Z","dependencies_parsed_at":"2024-06-21T19:02:27.712Z","dependency_job_id":"631500fe-f2e9-4c5b-88b9-8203ca0e81d1","html_url":"https://github.com/MorevM/commitlint-config","commit_stats":{"total_commits":28,"total_committers":2,"mean_commits":14.0,"dds":0.1071428571428571,"last_synced_commit":"e72f6b1eea86b30d65a65aede8f2d45011ed1b6c"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MorevM%2Fcommitlint-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MorevM%2Fcommitlint-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MorevM%2Fcommitlint-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MorevM%2Fcommitlint-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MorevM","download_url":"https://codeload.github.com/MorevM/commitlint-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240347947,"owners_count":19787236,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["commitlint","git","styleguide"],"created_at":"2024-11-09T18:28:15.137Z","updated_at":"2026-05-16T09:32:23.084Z","avatar_url":"https://github.com/MorevM.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Promo image of @morev/commitlint-config package](./.github/images/header.svg)\n\n![Stability of \"master\" branch](https://img.shields.io/github/actions/workflow/status/MorevM/commitlint-config/build.yaml?branch=master)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n![Last commit](https://img.shields.io/github/last-commit/morevm/commitlint-config)\n![Release version](https://img.shields.io/github/v/release/morevm/commitlint-config?include_prereleases)\n![GitHub Release Date](https://img.shields.io/github/release-date/morevm/commitlint-config)\n![Keywords](https://img.shields.io/github/package-json/keywords/morevm/commitlint-config)\n\n# @morev/commitlint-config\n\nShareable [`commitlint`](https://commitlint.js.org/) configuration.\n\n## Table of contents:\n\n* [Installation](#installation)\n  * [Using `yarn`](#using-yarn)\n  * [Using `npm`](#using-npm)\n  * [Using `pnpm`](#using-pnpm)\n* [Usage](#usage)\n  * [Basic usage](#basic-usage)\n  * [Advanced usage](#advanced-usage)\n* [Built-in type enum](#built-in-type-enum)\n\n## Installation\n\n### Using `yarn`\n\n```bash\nyarn add @morev/commitlint-config\n```\n\n### Using `npm`\n\n```bash\nnpm install @morev/commitlint-config\n```\n\n### Using `pnpm`\n\n```bash\npnpm add @morev/commitlint-config\n```\n\n## Usage\n\n### Basic usage\n\nCreate a `.commitlintrc.cjs` file in the project root:\n\n```bash\necho -e \"module.exports = {\\n\\textends: ['@morev/commitlint-config'],\\n\\trules: {},\\n};\" \u003e .commitlintrc.cjs\n```\n\nThe command above will create a `.commitlintrc.cjs` file with the following content:\n\n```js\nmodule.exports = {\n  extends: ['@morev/commitlint-config'],\n  rules: {},\n};\n```\n\n\u003e It's recommended to create `.commitlintrc.cjs` file instead of `commitlint.config.js` because by using\n\u003e this naming strategy you can keep your Commitlint configuration file consistent across packages\n\u003e regardless of whether the package has `\"type\": \"module\"` or `\"type\": \"commonjs\"`.\n\n### Advanced usage\n\nIf you need fine-grained control, you can import the entire config directly and manipulate it as a JavaScript object:\n\n```js\nconst config = require('@morev/commitlint-config');\n\n// Replace the `header-min-length` rule with custom settings\nconfig.rules['header-min-length'] = [2, 'always', 5];\n\nmodule.exports = config;\n```\n\nAlso you can use the built-in utility to modify `type-enum` rule for each project in a more elegant way:\n\n```js\nconst { modifyTypeEnum } = require('@morev/commitlint-config/utils');\nconst config = require('@morev/commitlint-config');\n\nmodule.exports = modifyTypeEnum(config, {\n  add: ['temp'],\n  remove: ['nvm'],\n});\n\n// Now you can use `temp` as a type and cannot use `nvm`, rest types remain as is.\n```\n\n## Built-in type enum\n\n| type       | Description |\n| -----------|-------------|\n| `feat`     | A new feature related to a production code. |\n| `fix`      | A bug fix related to a production code. |\n| `refactor` | A production code change that neither fixes a bug nor adds a feature. |\n| `perf`     | A less generic subset of `refactor`, a code change that improves performance. |\n| `test`     | Adding new/missing tests or correcting existing tests. |\n| `docs`     | Documentation changes. |\n| `chore`    | Updating accompanying code (linters, builders, library versions, etc.) without affecting the production code. |\n| `ci`       | A less generic subset of `chore` related to CI changes only. |\n| `release`  | A less generic subset of `chore` related to changes that only bumps the version and update `CHANGELOG.md`. |\n| `revert`   | Used for commits that revert another commit. |\n| `wip`      | Shortened form of **work in progress** \u003cbr /\u003eFor commits that should be in the public repository but represent a feature that is not yet ready. |\n| `nvm`      | Shortened form of **nevermind** \u003cbr /\u003eFor commits that have no value to other developers, which can be skipped when analyzing changes. |\n| `build`    | Not recommended to use nowadays. \u003cbr /\u003eUsed for legacy projects that provide build artifacts as part of the repository. |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorevm%2Fcommitlint-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorevm%2Fcommitlint-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorevm%2Fcommitlint-config/lists"}