sweepline / eslint-plugin-unused-imports

Package to separate no-unused-vars and no-unused-imports for eslint as well as providing an autofixer for the latter.
MIT License
504 stars 21 forks source link

Imports are being duplicated #80

Closed matsondawson closed 3 months ago

matsondawson commented 5 months ago

Optimizing imports creates duplicate. I've removed all the other plugins, and I quite can't figure out what causes the issue. Attached are before and after examples with my eslint config. Any ideas? image

Features:

├── @typescript-eslint/eslint-plugin@7.8.0 ├── @typescript-eslint/parser@7.8.0 ├── eslint-plugin-prettier@5.1.3 ├── eslint-plugin-react-hooks@4.6.2 ├── eslint-plugin-react@7.34.1 ├── eslint-plugin-unused-imports@3.2.0 ├── eslint@8.57.0

ZoneFilledPolygon.before.ts.txt ZoneFilledPolygon.after.ts.txt eslintrc.generator.json.txt

matsondawson commented 5 months ago

Now I'm losing brackes.

FootprintAttr.before.ts.txt FootprintAttr.after.ts.txt

sweepline commented 4 months ago

I cannot reproduce this with the files you have provided.