Socket
Socket
Sign inDemoInstall

@hint/formatter-json

Package Overview
Dependencies
6
Maintainers
5
Versions
45
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @hint/formatter-json

webhint formatter that prints the JSON object of the results


Version published
Weekly downloads
13K
decreased by-10.8%
Maintainers
5
Created
Weekly downloads
 

Readme

Source

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": {
        ...
    },
    ...
}

Keywords

FAQs

Last updated on 09 Jun 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc