🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@hint/hint-compat-api

Package Overview
Dependencies
Maintainers
3
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hint/hint-compat-api

hint to validate if the HTML, CSS, and JavaScript APIs of the project are deprecated or not broadly supported

1.0.0
Source
npm
Version published
Weekly downloads
22K
9.52%
Maintainers
3
Weekly downloads
 
Created
Source

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

  • compat-api-css
  • compat-api-css-next

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-css-next": "error",
        ...
    },
    "parsers": [...],
    ...
}

Further Reading

Keywords

hint

FAQs

Package last updated on 02 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts