Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(load): accept functions as parser presets #2982

Merged
merged 1 commit into from Jan 20, 2022

Commits on Jan 19, 2022

  1. feat(load): accept functions as parser presets

    Previously, `load` could accept `parserPresets` as both values and promises of
    values. Per conventional-changelog#2964 however, there was expectations for it to also support
    functions returning said values.
    
    This commit enables to specify `parserPresets` in all the same ways as
    rules. That is, both commitlint rules and `parserPresets` can be specified as:
    
    - Plain values
    - Promises
    - Functions returning plain values
    - Functions returning promises
    
    Solves conventional-changelog#2964.
    Zirak committed Jan 19, 2022
    Copy the full SHA
    3790afb View commit details
    Browse the repository at this point in the history