$ cnpm install @hint/hint-compat-api
compat-api)compat api contains hints to check if your CSS, HTML, and JavaScript
have deprecated or not broadly supported features.
You need to know if all the properties that you are using in your files are compatible with the target browsers that you want to support.
This package is installed automatically by webhint:
npm install hint --save-dev
To use it, activate it via the .hintrc configuration file:
{
"connector": {...},
"formatters": [...],
"hints": {
"compat-api/css": "error",
"compat-api/html": "error",
...
},
"parsers": [...],
...
}
Note: The recommended way of running webhint is as a devDependency of
your project.
Copyright 2013 - present © cnpmjs.org | Home |