Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Rocketseat/commitlint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

@rocketseat/commitlint-config

npm version License

Shareable commitlint config used by Rocketseat.

Install

You can install it with npm or Yarn.

# 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:

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.

# 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:

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

Husky v5:

# .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

About

Shareable commitlint config used by Rocketseat ๐Ÿš€

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.