Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hitode909/eslint-plugin-typescript-compat-dom
Uses mdn-browser-compat-data, browserslist, TypeScript Compiler API and lints compatibilities between browsers DOM APIs.
https://github.com/hitode909/eslint-plugin-typescript-compat-dom
Last synced: 3 months ago
JSON representation
Uses mdn-browser-compat-data, browserslist, TypeScript Compiler API and lints compatibilities between browsers DOM APIs.
- Host: GitHub
- URL: https://github.com/hitode909/eslint-plugin-typescript-compat-dom
- Owner: hitode909
- Created: 2020-02-14T10:30:51.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-01T08:25:57.000Z (almost 5 years ago)
- Last Synced: 2024-08-05T18:23:47.108Z (5 months ago)
- Language: TypeScript
- Homepage:
- Size: 43.9 KB
- Stars: 5
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eslint-plugin-typescript-compat-dom
- Lints the compatibilities between browsers DOM APIs.
- refers [mdn\-browser\-compat\-data](https://www.npmjs.com/package/mdn-browser-compat-data), TypeScript Compiler API, and browserslist.
- inspired by [eslint\-plugin\-compat](https://www.npmjs.com/package/eslint-plugin-compat).
- eslint-plugin-compat aims to JavaScript, while this plugin aims to TypeScript.
- This plugin is under development. DO NOT USE IN YOUR PRODUCTION.## Installation
```
$ npm i eslint eslint typescript @typescript-eslint/parser --save-dev
```## Usage
Specify the parser in you .eslintrc.
```json
{
"parser": "@typescript-eslint/parser"
}
```Set plugins and rules.
```json
{
"plugins": ["typescript-compat-dom"],"rules": {
"typescript-compat-dom/compat-dom": ["error", {
"browserslist": ["ie 11"]
}]
}
}
```## LICENCE
MIT