Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

commitlint-format-json

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commitlint-format-json

Format Commitlint output as plain JSON

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
727
increased by67.13%
Maintainers
1
Weekly downloads
 
Created
Source

commitlint-format-json

Format all Commitlint issues as a simple JSON string. You can use this JSON to import the report and reuse it. The format matches the original issues report from Commitlint.

Formats are available in Commitlint starting from >=7.2.0

Install

$ npm install commitlint-format-json

Usage

You can use it by either defining the output flag, as listed below, or configure with sharable configuration.

$ echo 'foo: bar' | npx commitlint -o commitlint-format-json

Example

$ echo 'foo: bar' | npx commitlint -x @commitlint/config-conventional -o commitlint-format-json
{"valid":false,"errorCount":1,"warningCount":0,"results":[{"valid":false,"errors":[{"level":2,"valid":false,"name":"type-enum","message":"type must be one of [build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test]"}],"warnings":[],"input":"foo: bar"}]}

Contributing

Contributions are always welcome. This project is open source, and anyone may contribute. To keep the project healthy and running smoothly, a couple of rules are defined.

  1. Keep it friendly and accessible at all times.
  2. Use the templates adequately with the required information.
  3. Adhere the code styling and make sure CI passes.

Make something awesome!

License

The MIT License (MIT). Please see License File for more information.


with :heart: byCedric

Keywords

FAQs

Package last updated on 07 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc