commitizen / commitizen/cz-cli

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

Aperta
#773 3 commenti 12 reazioni 1 assegnatario Rivendicata da @dmwelch Vedi su GitHub
enhancement help / pr wanted
Lingua principale
JavaScript
Stelle
17.5k
Fork
566
Merge medio
8h 16m
PR unite (30g)
1

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.