un-ts / eslint-plugin-import-x

`eslint-plugin-import-x` is a fork of `eslint-plugin-import` that aims to provide a more performant and more lightweight version of the original plugin.

Home Page:https://npm.im/eslint-plugin-import-x

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drop all those unnecessary polyfills

SukkaW opened this issue · comments

commented

https://github.com/un-es/eslint-plugin-i/blob/616ac75b11731f41a3786bdbe2c7620d65df9ded/package.json#L102-L118

There are WAY TOO MANY polyfills in the dependencies. Let's target Node.js 14 and drop all of them!

commented

According to https://node.green, even Node.js 12 supports all Array.prototype.includes, Array.prototype.flat, Array.prorotype.flatMap, and Object.values. That's to say, we can drop all of the polyfills if we target Node.js 12.