Format Commitlint output as plain JSON
Last updated 2 years ago by bycedric .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install commitlint-format-json 
SYNC missed versions from official npm registry.


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


$ npm install commitlint-format-json


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


$ 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"}]}


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!


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

with :heart: byCedric

Current Tags

  • 1.1.0                                ...           latest (2 years ago)

3 Versions

  • 1.1.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 0.0.0                                ...           2 years ago
Maintainers (1)
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 2
Dependencies (0)
Dev Dependencies (0)

Copyright 2014 - 2017 © |