2.1.1 • Published 4 years ago

@zeferinix/commitlint-config v2.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@zeferinix/commitlint-config

Shareable commitlint config enforcing Conventional Commits thru extension of @commitlint/config-conventional. Use with @commitlint/cli.

Installation

npm install --save-dev @commitlint/cli @zeferinix/commitlint-config

Usage

Best used with husky as a commit-msg hook.

With a dedicated Commitlint Config

Create a commitlint.config.js file on the root directory and extend with this package:

module.exports = {
  extends: ['@zeferinix'],
};

With package.json

In the package.json of your project

{
  "commitlint": {
    "extends": ["@zeferinix"],
    "rules": {}
  }
}

Valid Types

TypeDescription
buildChanges that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
choreChanges to the build process or auxiliary tools and libraries such as documentation generation
ciChanges to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
cssChanges that affect css styling
docsDocumentation only changes
featA new feature
fixA bug fix
infraChanges to any infrastructure configuration files and/or scripts (example scopes: aws, heroku, azure, nginx)
perfA code change that improves performance
refactorA code change that neither fixes a bug nor adds a feature
revertRead here
styleChanges that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
testAdding missing tests or correcting existing tests
wipWork in progress. For partial progress that you want to sync on the remote repo.

Note: Descriptions taken directly from Angular's Commit Message Type Guidelines except for types that are in bold characters as they are new types added by this config.