Skip to content

When extending config the parser preset is not loaded #830

Closed
@byCedric

Description

@byCedric

Expected Behavior

I tried to extend the new @commitlint/config-conventional and add some "overrides" into that one. What I'd expect is that the new parserPreset is also reused, besides the rules.

Current Behavior

Right now if you extend configs like there, the parser preset remains undefined. This is a dump I got from the @commitlint/load package.

{
  extends: [ '@commitlint/config-conventional' ],
  rules: {
    'header-max-length': [ 2, 'always', 80 ],
    'type-enum': [ 2, 'always', [Array] ]
  },
  parserPreset: undefined
}

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

Executable Version
commitlint --version 8.3.0
git --version 2.17.1
node --version 12.11.1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions