1.0.0 • Published 5 years ago

webhint-formatter-real-json v1.0.0

Weekly downloads
11
License
Apache-2.0
Repository
github
Last release
5 years ago

Webhint "real" JSON formatter

The Webhint "real" json formatter does a JSON.stringify() of the results of running hint, formatted as an array of objects. Unlike the default json formatter, no other non-JSON text is output. Output is not very user friendly, but it can be useful when using it as input for other tools:

To use it you will have to install it via npm:

npm install webhint-formatter-real-json

Note: You can make npm install it as a devDependency using the --save-dev parameter, or to install it globally, you can use the -g parameter. For other options see npm's documentation.

And then activate it via the .hintrc configuration file:

{
    "connector": {...},
    "formatters": "real-json",
    "hints": {
        ...
    },
    ...
}

This package is derived from the core webhint JSON formatter.

Running the tests

$ npm test

Releasing a new version

$ npm run build-release
$ npm publish