An open API service indexing awesome lists of open source software.

https://github.com/burgwyn/webhint-formatter-json-object

A JSON object formatter for webhint
https://github.com/burgwyn/webhint-formatter-json-object

formatter hints webhint

Last synced: 5 months ago
JSON representation

A JSON object formatter for webhint

Awesome Lists containing this project

README

          

# 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](images/json-object-output.png)

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

```bash
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`][hintrc] configuration file:

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

[hintrc]: https://webhint.io/docs/user-guide/configuring-webhint/summary/