JSPM

  • Created
  • Published
  • Downloads 22594
  • Score
    100M100P100Q142496F
  • License Apache-2.0

webhint's recommended hints configuration for development

Package Exports

  • @hint/configuration-development

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's development configuration (@hint/configuration-development)

This packages is a webhint configuration package to use during development and it is installed automatically by webhint:

npm install hint --save-dev

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

The minimum required .hintrc file to use it is the following:

{
    "extends": ["development"]
}

and it will be as if you had this:

{
    "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
}

If you prefer to use another formatter (or any other hint/connector, etc.) you can do something like:

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