douglascrockford/JSLint — Issue #96: Feature request related to /*global */
Author: mythril
Created: 2012-01-22 19:49:30+00:00
State: open

I've noticed that over time my /*global blah*/ line accrues cruft, I was hoping to find an option to warn me when I have unused globals declared.

I mean to say that often I refactor code into two or more independent bits, one or more of the independent bits no longer has the same global dependency as the ancestral code.

Often out of haste, ignorance, or accident, I allow the global line to keep the cruft of the ancestral code, which later on makes me think that this code somehow uses the global in question (often as a library).