Commitlint: type-enum fills in with angular values even when a lintrc file is included

Created on 30 Mar 2017  ยท  2Comments  ยท  Source: conventional-changelog/commitlint

Hi, I have a lintrc file that includes 7 values for type-enum. When I write a commit that fails that check, the list of possible type-enums includes 3 values from the angular config: 'revert', 'style' and 'test'.

my lintrc rule looks like this:

"type-enum": [ 2, "always", [ "Fix", "New", "Breaking", "Docs", "Build", "Upgrade", "Chore", "Update" ] ],

and I'm using husky in my package.json with "commitmsg": "conventional-changelog-lint -e",

this is my terminal output when I fail that check:
type must be one of ["Fix", "New", "Breaking", "Docs", "Build", "Upgrade", "Chore", "Update", "revert", "style", "test"] [type-enum]

Thanks for making this library!

bug

All 2 comments

Thanks for reporting - I'll check on this over the next days!

Fixed by #30 and released:

โฏ npm show conventional-changelog-lint .version
1.1.9
Was this page helpful?
0 / 5 - 0 ratings

Related issues

gajus picture gajus  ยท  4Comments

1natsu172 picture 1natsu172  ยท  5Comments

topocount picture topocount  ยท  3Comments

EECOLOR picture EECOLOR  ยท  3Comments

ResDiaryLewis picture ResDiaryLewis  ยท  4Comments