1. commitlint-config-git-commit-emoji
Shareable commitlint config for the VS Code extension git-commit-plugin with emoji enabled
commitlint-config-git-commit-emoji
Package: commitlint-config-git-commit-emoji
Created by: ccnnde
Last modified: Wed, 27 Apr 2022 14:24:27 GMT
Version: 1.0.0
License: MIT
Downloads: 1,709
Repository: https://github.com/ccnnde/commitlint-config-git-commit-emoji

Install

npm install commitlint-config-git-commit-emoji
yarn add commitlint-config-git-commit-emoji

commitlint-config-git-commit-emoji

npm latest
download
MIT

Shareable commitlint config for the VS Code extension git-commit-plugin with emoji enabled.
Use with commitlint.

Getting started

 npm install --save-dev @commitlint/cli commitlint-config-git-commit-emoji

echo "module.exports = {extends: ['git-commit-emoji']};" > .commitlintrc.js

Format

 <emoji> <type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>

Example

 โœจ feat(blog): add comment section

Rules

Problems

The following rules are considered problems for commitlint-config-git-commit-emoji and will yield a non-zero exit code when not met.
Consult docs/rules for a list of available rules.

type-enum

  • condition: type is found in value
  • rule: always
  • value
 [
  '๐ŸŽ‰ init',
  'โœจ feat',
  '๐Ÿž fix',
  '๐Ÿ“ƒ docs',
  '๐ŸŒˆ style',
  '๐Ÿฆ„ refactor',
  '๐ŸŽˆ perf',
  '๐Ÿงช test',
  '๐Ÿ”ง build',
  '๐ŸŽ ci',
  '๐Ÿณ chore',
  'โ†ฉ revert',
]
 echo "foo: some message" # fails
echo "๐Ÿž fix: some message" # passes

type-case

  • description: type is in case value
  • rule: always
  • value
 'lowerCase'
 echo "FIX: some message" # fails
echo "๐Ÿž fix: some message" # passes

type-empty

  • condition: type is empty
  • rule: never
 echo ": some message" # fails
echo "๐Ÿž fix: some message" # passes

scope-case

  • condition: scope is in case value
  • rule: always
 'lowerCase'
 echo "๐Ÿž fix(SCOPE): some message" # fails
echo "๐Ÿž fix(scope): some message" # passes

subject-case

  • condition: subject is in one of the cases ['sentence-case', 'start-case', 'pascal-case', 'upper-case']
  • rule: never
 echo "๐Ÿž fix(SCOPE): Some message" # fails
echo "๐Ÿž fix(SCOPE): Some Message" # fails
echo "๐Ÿž fix(SCOPE): SomeMessage" # fails
echo "๐Ÿž fix(SCOPE): SOMEMESSAGE" # fails
echo "๐Ÿž fix(scope): some message" # passes
echo "๐Ÿž fix(scope): some Message" # passes

subject-empty

  • condition: subject is empty
  • rule: never
 echo "๐Ÿž fix:" # fails
echo "๐Ÿž fix: some message" # passes

subject-full-stop

  • condition: subject ends with value
  • rule: never
  • value
 '.'
 echo "๐Ÿž fix: some message." # fails
echo "๐Ÿž fix: some message" # passes

subject-exclamation-mark

  • condition: subject must not have a ! before the : marker
  • rule: never

The angular commit
convention

dose not use a ! to define a breaking change in the commit subject. If you
want to use this feature please consider using the conventional commit
config
.

header-max-length

  • condition: header has value or less characters
  • rule: always
  • value
 72
 echo "๐Ÿž fix: some message that is way too long and breaks the line max-length by several characters" # fails
echo "๐Ÿž fix: some message" # passes

body-leading-blank

  • condition: Body should have a leading blank line
  • rule: always
 echo "๐Ÿž fix: some message
body" # fails

echo "๐Ÿž fix: some message

body" # passes

footer-leading-blank

  • condition: Footer should have a leading blank line
  • rule: always
 echo "๐Ÿž fix: some message
BREAKING CHANGE: It will be significant" # fails

echo "๐Ÿž fix: some message

BREAKING CHANGE: It will be significant" # passes

Thanks

License

MIT ยฉ Nor Cod

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin