@unicommerce/commitlint-config

0.1.0 • Public • Published

@unicommerce/commitlint-config

🎉 Introduce

git commit message 规范

📚 Documentation

✨ Features

module.exports = {
  extends: [require.resolve('@commitlint/config-conventional')],
  rules: {
    'body-max-line-length': [0],
    'type-enum': [
      2,
      'always',
      [
        'feat', // A new feature
        'fix', // A bug fix
        'docs', // Documentation only changes
        'style', // Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
        'refactor', // A code change that neither fixes a bug nor adds a feature
        'perf', // A code change that improves performance
        'test', // Adding missing tests
        'chore', // Changes to the build process or auxiliary tools and libraries such as documentation generation
        'revert', // revert to a commit
        'build' // pack
      ]
    ],
    'subject-case': [0]
  }
}

📦 Install

$ npm install --save-dev @unicommerce/commitlint-config
# or
$ yarn add --save-dev @unicommerce/commitlint-config
# or
$ pnpm add --save-dev @unicommerce/commitlint-config

🔨 Usage

// .commitlintrc.js
const commitlintConfig = require('@unicommerce/admin-commitlint-config')

module.exports = {
  ...commitlintConfig
}

Readme

Keywords

none

Package Sidebar

Install

npm i @unicommerce/commitlint-config

Weekly Downloads

10

Version

0.1.0

License

MIT

Unpacked Size

3.36 kB

Total Files

5

Last publish

Collaborators

  • jdream