@cordada/commitlint-config-cordada

中文文档
0.1.5发布于 2026/11/06MIT近 30 天下载 3414

Shareable commitlint config enforcing conventional commits, with some customizations

原始使用文档
文档目录5 节
  1. Getting started
  2. Rules
  3. Problems
  4. Ignored Commits
  5. Publishing Node.js Package

@cordada/commitlint-config-cordada

Shareable commitlint configuration enforcing conventional commits, with some customizations. Use with @commitlint/cli and @commitlint/prompt-cli.

Getting started

npm install --save-dev @cordada/commitlint-config-cordada @commitlint/cli
echo "module.exports = {extends: ['@cordada/commitlint-config-cordada']};" > commitlint.config.js

Rules

Problems

The following rules are considered problems for @cordada/commitlint-config-cordada and will yield a non-zero exit code when not met.

Consult docs/rules or docs/rules (2) for a list of available rules.

TODO

TODO 🚧

Ignored Commits

Besides the default ignores of commitlint, such as merge and revert commits, the commits created by Dependabot are not linted. Dependabot writes their titles itself, and those of its grouped updates, such as chore(deps): Bump the <group> group across 1 directory with <N> updates, can exceed the maximum length of the title. They are recognized by the trailer Signed-off-by: dependabot[bot] <[email protected]>, which Dependabot adds to every commit it creates. A commit pushed by a person to a pull request of Dependabot does not carry it, and is linted as usual.

A configuration that extends this one and sets ignores of its own replaces this list instead of adding to it, so it has to repeat this ignore to keep it.

Publishing Node.js Package

npm config set @cordada:registry='https://registry.npmjs.org' --location project
npm publish

npm config set @cordada:registry='https://npm.pkg.github.com' --location project
npm publish

npm config delete @cordada:registry --location project

版本与发布记录

@cordada/commitlint-config-cordada 共发布 7 个版本,首次发布于 2022/08/25;过去 12 个月发布了 1 个版本。

版本发布日期距今
0.1.5latest2026/11/065 天前
0.1.42024/09/282 年前
0.1.32024/09/282 年前
0.1.22024/09/282 年前
0.1.12023/02/173 年前
0.1.02022/08/264 年前

关于 @cordada/commitlint-config-cordada 的常见问题

@cordada/commitlint-config-cordada 是什么?

Shareable commitlint config enforcing conventional commits, with some customizations

如何安装 @cordada/commitlint-config-cordada?

在项目目录运行 npm install @cordada/commitlint-config-cordada,或使用 pnpm add / yarn add / bun add。

@cordada/commitlint-config-cordada 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/cordada__commitlint-config-cordada 是否存在。

@cordada/commitlint-config-cordada 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=v14。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@cordada/commitlint-config-cordada 可以商用吗?

@cordada/commitlint-config-cordada 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@cordada/commitlint-config-cordada 的下载量有多少?

根据 npm 官方下载统计,@cordada/commitlint-config-cordada 在 2026/10/11 – 2026/11/09 这 30 天内被下载 3,414 次,日均约 114 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@cordada/commitlint-config-cordada 还在维护吗?

最新版本 0.1.5 发布于 2026/11/06(5 天前);至今共发布 7 个版本,其中过去 12 个月发布了 1 个;首次发布于 2022/08/25。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。