(Rome does both, but looking for prior art)
-
-
-
(Rome can also walk your dog, drive you to work, mow your lawn, do your laundry, clean your dishes, brush your teeth, write your code, drive your car, generate electricity, rate your farts, do a backflip, and more. It's the ALL IN ONE TOOLCHAIN, BABY)
Show this thread
End of conversation
New conversation -
-
-
Is there actually a way to statically detect truly “dead” or unused files in a codebase?
-
Yeah. You can get a list of all the JS files in a project. Then take a list of entry points, get all their transitive dependencies and mark them as "used". Then combine the dependency graph of all entry points, and compare the imports/exports.
- 4 more replies
New conversation -
-
-
I really hope this works with TypeScript.



-
Hopefully
End of conversation
New conversation -
-
-
I doubt that js linter can do it? I created the plugin which is based on webpack (via hooks) to detect dead code and unused fileshttps://github.com/MQuy/webpack-deadcode-plugin …
-
Nice! Why do your doubt a linter can do it? Any tool is capable of building a dependency graph
- 1 more reply
New conversation -
-
-
I actually think that my vscode using TS does this --- noticed a different colour of files as long as I don't include (import) them anywhere. In other words: yes I think it's either in vscode, tsc or eslint+tslintrules
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I'll break into your apartment and steal your laptop for this feature alone.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 