This site uses cookies for analytics. By continuing to browse this site, you agree to this use.

webhint's all configuration

webhint’s all configuration (@hint/configuration-all)

This is a webhint configuration package to use for enabling all hints.

This package will automatically install all the missing dependencies.

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

npm install @hint/configuration-all

Note: You can make npm install it as a devDependency using the --save-dev parameter, or to install it globally, you can use the -g parameter. For other options see npm‘s documentation.

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

{
    "extends": ["all"]
}

and it will be as if you had this:

{
    "connector": "puppeteer",
    "formatters": [
        "html",
        "summary"
    ],
    "hints": {
        "amp-validator": "error",
        "apple-touch-icons": "error",
        "axe/aria": "error",
        "axe/forms": "error",
        "axe/color": "error",
        ...
    },
    "hintsTimeout": 120000
}

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

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

Note: Not all the hints can be used for all connectors, you will be warned when a hint is going to be ignored for a connector.

e.g.

Warning: The hint "babel-config/is-valid" will be ignored for the connector "puppeteer"