Compatibility of CSS, HTML and JavaScript features (compat-api
)
compat api
contains hints to check if your CSS, HTML, and JavaScript
have deprecated or not broadly supported features.
Why is this important?
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.
Hints
How to use these hints?
To use it you will have to install it via npm
:
npm install @hint/hint-compat-api
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.
And then activate it via the .hintrc
configuration file:
{
"connector": {...},
"formatters": [...],
"hints": {
"compat-api/css": "error",
"compat-api/html": "error",
...
},
"parsers": [...],
...
}