JSPM

  • Created
  • Published
  • Downloads 25303
  • Score
    100M100P100Q147919F
  • License Apache-2.0

webhint formatter that prints the JSON object of the results

Package Exports

  • @hint/formatter-json
  • @hint/formatter-json/dist/src/formatter.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@hint/formatter-json) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

JSON (@hint/formatter-json)

The json formatter does a JSON.stringify() 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 formatter

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

npm install @hint/formatter-json --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": ["json"],
    "hints": {
        ...
    },
    ...
}