ESLint only executes on one file at a time, so it can't trace cross-file 
dependencies. Within a context of a single file we have 
http://eslint.org/docs/rules/no-unreachable rule which would find code that's 
not possible to execute.

Thanks,

                Ilya Volodin

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of 
Eric Prickett
Sent: Wednesday, May 11, 2016 12:15 AM
To: ESLint <[email protected]>
Subject: [ESLint] Dead code eliminator?

Hi everyone, I just introduced eslint at work on our node/react projects and 
love it. I was wondering if there's a rule or plugin that can identify dead 
code? We all know that guy that leaves it around... I don't want a cemetery in 
my projects though!

As an example some IDEs like IntelliJ are able to identify that a function 
isn't called anywhere in a project. 

Thanks,
Eric

-- 
You received this message because you are subscribed to the Google Groups 
"ESLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"ESLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to