eslint-plugin-ie11
Version:
ESLint plugin for detecting unsupported ES6 features in IE11
33 lines (19 loc) • 657 B
Markdown
WeakMap and WeakSet are poorly supported in IE11.
This rule aims to aviod usage of those built-in collections.
Examples of **incorrect** code for this rule:
```js
const map = new WeakMap();
const set = new WeakSet();
```
Examples of **correct** code for this rule:
```js
const map = new Map();
const set = new Set();
```
If you care supporting `WeakMap` in your code.
WeakMap support: http://kangax.github.io/compat-table/es6/#test-WeakMap
WeakSet support: http://kangax.github.io/compat-table/es6/#test-WeakSet