Home

Awesome

eslint-plugin-typescript-compat-dom

<img width="1385" alt="screenshot" src="https://user-images.githubusercontent.com/18360/75621805-a78a1a80-5bdc-11ea-930c-8087fa7a9479.png">

Installation

$ npm i eslint eslint typescript @typescript-eslint/parser --save-dev

Usage

Specify the parser in you .eslintrc.

{
  "parser": "@typescript-eslint/parser"
}

Set plugins and rules.

{
  "plugins": ["typescript-compat-dom"],

  "rules": {
    "typescript-compat-dom/compat-dom": ["error", {
        "browserslist": ["ie 11"]
    }]
  }
}

LICENCE

MIT