JSPM

  • Created
  • Published
  • Downloads 18868
  • Score
    100M100P100Q153289F
  • License Apache-2.0

webhint's recommended hints configuration for development

Package Exports

  • @hint/configuration-development
  • @hint/configuration-development/index.json

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/configuration-development) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

webhint development configuration

To examine your raw source, use @hint/configuration-development.

NOTE: To examine development and live websites, use @hint/configuration-web-recommended.

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": ["development"]
}

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

{
    "connector": "local",
    "extends": [
        "accessibility",
        "progressive-web-apps"
    ],
    "formatters": [
        "html",
        "summary"
    ],
    "hints": {
        "axe": "error",
        "babel-config/is-valid": "error",
        "disown-opener": "error",
        "highest-available-document-mode": "error",
        "manifest-exists": "off",
        "meta-charset-utf-8": "error",
        "meta-viewport": "error",
        ...
    },
    "hintsTimeout": 10000
}

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

{
    "extends": ["development"],
    "formatters": ["codeframe"]
}