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.
https://npm.im/eslint-plugin-import-x
MIT License
406 stars 21 forks source link

[import-x/no-duplicates] performance is bad #103

Closed tjx666 closed 3 months ago

tjx666 commented 3 months ago

In most of the files I test, the performance of rule import-x/no-duplicates is most bad:

image

test command:

TIMING=1 eslint /path/to/lint.tsx
macalinao commented 3 months ago

Having the same issue

SukkaW commented 3 months ago

This is expected. no-duplicates was ported directly from eslint-plugin-import and the code by the time is a messy sh*t. I will rewrite this rule to be more performant.

SukkaW commented 3 months ago

The issue should be resolved and will be released in the next version!