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

Manual rebase and sync upstream

SukkaW opened this issue · comments

commented

@JounQin

eslint-plugin-i seems to be up of sync from upstream for months:

image

A manual rebase is required.


The object.groupby package can be replaced with this:

// This is a **non spec compliant** but works in practice replacement of `object.groupby` package.
const groupBy = (array, grouper) => array.reduce((acc, cur) => {
  const key = grouper(cur);
  (acc[key] = acc[key] || []).push(cur);
  return acc;
}, {});

And object.fromentries can be replaced with const { fromEntries } = Object;

Thanks for reminding, I'll do it tomorrow.

v2.28.0-1 released