Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hint/configuration-web-recommended

Package Overview
Dependencies
Maintainers
5
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hint/configuration-web-recommended

webhint's recommended hints configuration for live websites

  • 8.2.24
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16K
decreased by-20.99%
Maintainers
5
Weekly downloads
 
Created
Source

To examine development or in-production websites, use @hint/configuration-web-recommended.

NOTE: This package is for use against any content served from a web server.

This webhint configuration package is installed automatically by webhint.

To install webhint, run the command in the following code snippet.

npm install hint --save-dev

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

Copy the following code snippet and add it to your .hintrc file.

{
    "extends": ["web-recommended"]
}

The following code snippet is an expanded version of the previous code snippet.

{
    "connector": {
        "name": "puppeteer"
    },
    "extends": [
        "accessibility"
    ],
    "formatters": [
        "html",
        "summary"
    ],
    "hints": {
        "axe": "error",
        "content-type": "error",
        "disown-opener": "error",
        "highest-available-document-mode": "error",
        "html-checker": "error",
        "http-cache": "error",
        "http-compression": "error",
        ...
    },
    "hintsTimeout": 120000
}

The following code snippet includes another formatter (or any other hint or connector, and so on).

{
    "extends": ["web-recommended"],
    "formatters": ["codeframe"]
}

Keywords

FAQs

Package last updated on 29 Aug 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc