Skip to content

Validate config better #263

Closed
Closed
@marionebl

Description

@marionebl

commitlint is bound to become increasingly complex and already creates confusion for less common use cases. This is made worse by commitlint accepting unknown config keys:

Expected Behavior

  • Throw when unknow config keys are encountered
  • Be extra helpful when
    • a rule name is encountered in the root object
    • issuePrefixes is provided outside of parserPreset.parserOpts

Current Behavior

  • Unknown config keys are accecpted without error

Possible Solution

  • JSONSchema (compare webpack)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions