Detalhes do pacote

conventional-changelog-lint-config-angular

marionebl11.6kMITdepreciado1.0.0

renamed to commitlint: https://git.io/vQ1rU

Shareable conventional-changelog-lint config enforcing the angular commit convention

conventional-changelog, changelog, commit, config

readme (leia-me)

Lint your commits, angular-style

conventional-changelog-lint-config-angular

Shareable conventional-changelog-lint config enforcing the angular commit convention.

Installation

Fetch it with npm

npm install --save-dev conventional-changelog-lint-config-angular conventional-changelog-lint

See version 0.2 for config conforming to Angular 1 conventions:

npm install --save-dev conventional-changelog-lint-config-angular@0.2

Usage

Install and use as conventional-changelog-lint shareable config.

// .conventional-changelog-lintrc
{
  "extends": ["angular"]
}

⇨ See conventional-changelog-lint/shareable-config for details

Rules

Problems

The following rules are considered problems for conventional-changelog-lint-config-angular and will yield a non-zero exit code when not met.

type-enum

  • condition: type is found in value
  • rule: always
  • value

    [
      'build',
      'chore',
      'ci',
      'docs',
      'feat',
      'fix',
      'perf',
      'refactor',
      'revert',
      'style',
      'test'
      ]

type-case

  • description: type is in case value
  • rule: always
  • value
      'lowerCase'

type-empty

  • condition: type is empty
  • rule: never

scope-case

  • condition: scope is in case value
  • rule: always
    'lowerCase'

subject-empty

  • condition: subject is empty
  • rule: never

subject-full-stop

  • condition: subject ends with value
  • rule: never
  • value
    '.'

header-max-length

  • condition: header has value or less characters
  • rule: always
  • value
    72

Warnings

The following rules are considered warnings for conventional-changelog-lint-config-angular and will print warning messages when not met.

body-leading-blank

  • condition: Body begins with blank line
  • rule: always

lang

  • condition: subject is of language value
  • rule: always
  • value
    eng

Wildcards

The following rules identify commits that pass linting by skipping all other rules.

merge

  • condition: header matches pattern
  • pattern:
      /^(Merge pull request)|(Merge (.*?) into (.*?)|(Merge (.*?) branch (.*?))$)/

release

  • condition: header matches pattern
  • pattern: always
  • pattern:
      /^\\d+.\\d+.\\d+\n?$/

revert

  • condition: header matches pattern
  • pattern: always
  • pattern:
      /^revert: (.*)/

⇨ See conventional-changelog-lint/shareable-config for available rules


Copyright 2016 by Mario Nebl and contributors. Released under the MIT license.

changelog (log de mudanças)

1.0.0 (2017-07-07)

0.4.1 (2017-03-23)

Bug Fixes

  • match remote tracking branches in ignore pattern (7124a8a)

0.4.0 (2017-03-03)

Features

  • add wildcards for prerelease (e34db1c)

0.3.0 (2016-11-01)

Features

  • add angular 2x commit types (8c01b7e)

0.2.3 (2016-06-20)

Bug Fixes

  • adhere to angular types (a532731)

0.2.2 (2016-02-25)

0.2.1 (2016-02-25)

Bug Fixes

  • footer-leading-blank should warn (f1dea9d)

0.2.0 (2016-02-25)

Features

0.1.4 (2016-02-24)

Bug Fixes

  • match multi-digit releases with wildcard (a0d33f3)

0.1.3 (2016-02-22)

Bug Fixes

  • match gitlab auto-merge messages with merge wildcards (a766a4b)

0.1.2 (2016-02-14)

Bug Fixes

  • correct wildcard patterns (63114f1)

0.1.1 (2016-02-14)

0.1.0 (2016-02-14)

Features

  • assemble basic angular ruleset (1a51ac8)

Copyright 2016 by Mario Nebl and contributors. Released under the MIT license.