commitizen / commitizen/cz-cli

Use cosmiconfig so users can use whatever config file extension they want

Open
#773 3 comments 12 reactions 1 assignee Claimed by @dmwelch View on GitHub
enhancement help / pr wanted
Dominant language
JavaScript
Stars
17.5k
Forks
566
Avg merge
8h 16m
Merged PRs (30d)
1

Description

With `cosmiconfig` we could automatically load the configuration file from whatever supported file, such as:

> - a package.json property
> - a JSON or YAML, extensionless "rc file"
> - an "rc file" with the extensions .json, .yaml, .yml, .js, or .cjs
> - a .config.js or .config.cjs CommonJS module

I'm personally looking for a `.czrc.json`, so my VSCode can automatically detect it as JSON.

Nonetheless, this would reduce a lot of code from this repo.

https://github.com/davidtheclark/cosmiconfig

Related: https://github.com/commitizen/cz-cli/issues/460

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.