How to delete all unused variables in WebStorm?

Viewed 3879

How to delete all unused variables in a project in WebStorm or other editor?

I have a lot of unused CommonJS imports like this. I'd like to remove them from my project.

var ReactDOM = require('react-dom');
1 Answers
Related