Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Possible to check imported folder from package.json name #57

Open
flixyudh opened this issue Jun 27, 2022 · 3 comments

Comments

@flixyudh
Copy link

flixyudh commented Jun 27, 2022

This tools awesome to check all my unused files, but i have some import file that used package.json

let say i have this structure folder

assets (dir)
  welcome.png
  splash_screen.png
  package.json
index.js (file)

where package.json inside assets folder has json :

{
    "name": "@images"
}

and my index.js contain some code like this :

const WelcomeImage = require('@images/welcome.png')

this way, deadfile checking welcome.png is not imported

is there some way to solve this issue @M-Izadmehr ?

@M-Izadmehr
Copy link
Owner

Thanks for taking the time to create an issue, it’s an interesting use case!
I’m currently trying to refactor the fileResolver so it can plug different alias mechanisms.

When its done, it should be rather easy to implement it.

@flixyudh
Copy link
Author

That sound great.
Thank you very much

@FLchs
Copy link

FLchs commented Feb 9, 2023

Hello,
Any update on this issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants