npm.io
1.6.0 • Published 8 months ago

webhint-formatter-json-object

Licence
Apache-2.0
Version
1.6.0
Deps
5
Size
41 kB
Vulns
0
Weekly
0
Stars
1

webhint-formatter-json-object

The json-object formatter returns a JSON array of the results. Output is not very user friendly, but it can be useful when using it as input for other tools:

Example output for the json object formatter

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

npm install webhint-formatter-json-object --save-dev

Note: The recommended way of running webhint is as a devDependency of your project.

And then activate it via the .hintrc configuration file:

{
    "connector": {...},
    "formatters": ["webhint-formatter-json-object"],
    "hints": {
        ...
    },
    ...
}