delete-react-zombies icon indicating copy to clipboard operation
delete-react-zombies copied to clipboard

Referenced Files Getting Purged?

Open steve-gray opened this issue 5 years ago • 3 comments

With a file that does a basic import such as:

import Something from './somefile'

When I give delete-react-zombies the folder, /somefile.js gets picked up for deletion. I missing something here in the instructions, or is this type of import not covered?

steve-gray avatar Aug 05 '19 03:08 steve-gray

I have a similar pb with files that are exportes from folder/index.js and then imported as folder (a pretty common pattern i think?) that are proposed for deletion

KudMath avatar Sep 30 '19 10:09 KudMath

Hi @steve-gray and @KudMath,

thanks a lot for your report, could you tell me more about it? I don't understand what the problem is. Thank you guys 👍

CVarisco avatar Sep 30 '19 12:09 CVarisco

@CVarisco imagine you have a file src/helpers/index.js that you want to import. It's very common to import it like this:

// src/component.js
import helpers from 'helpers'

without the trailing index. Those files seem to be picked up for deletion when they shouldn't

maxcodes avatar Jan 28 '20 03:01 maxcodes