douglascrockford/JSLint — Issue #88: Predefined names with leading underscores still trigger errors
Author: mfncooper
Created: 2011-12-06 17:38:55+00:00
State: open

When "Assume Node.js" is in use, the predefined names include '__dirname' and '__filename', which is appropriate. However, using those names still results in "dangling underscore" errors, which is not appropriate. These are names that are built into Node.js, so I shouldn't be forced to either allow dangling underscores everywhere, or comment every use of these names, to avoid JSLint errors. My expectation is that predefined names would be "immune" from further name checks, since predefined names are almost always being predefined by some other code outwith my control.