Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

commitlint-config

> 开发工具
Open source

Shareable commitlint config used by Rocketseat

99 stars0 likes2 views
WebsiteGitHub

About

Shareable commitlint config used by Rocketseat

@rocketseat/commitlint-config

Shareable commitlint config used by Rocketseat.

Install

You can install it with npm or Yarn.

bash
# npm
npm i -D @rocketseat/commitlint-config @commitlint/cli

# Yarn
yarn add -D @rocketseat/commitlint-config @commitlint/cli

Usage

After installing it, apply the config to commitlint by running the following command:

bash
echo "module.exports = { extends: ['@rocketseat/commitlint-config'] };" > .commitlintrc.js

Bonus

To lint commits before they are created, install Husky and use the 'commit-msg' hook.

bash
# Npm
npm i -D husky

# Yarn
yarn add -D husky

After that, you can create a .huskyrc file or add to your package.json the following code for

Husky v4:

json
{
  "husky": {
    "hooks": {
      "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
    }
  }
}

Husky v5:

bash
# .husky/commit-msg
# ...
npx --no-install commitlint --edit $1
# or
yarn commitlint --edit $1

Version Support

  • Node.js LTS >= 10.21.0
  • git >= 2.13.2

License

MIT License © Rocketseat

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScriptcommitlintcommitlint-configgitlint

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具