commitizen / commitizen/cz-cli

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

Đang mở
#773 3 bình luận 12 reaction 1 người được giao Được @dmwelch nhận Xem trên GitHub
enhancement help / pr wanted
Ngôn ngữ chính
JavaScript
Star
17.5k
Fork
566
Merge trung bình
8 giờ 16 phút
Pull request đã merge (30 ngày)
1

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.