reid/node-jslint — pull request #47 by brendoncrawford (2012-11-18 04:39:04+00:00)
Title: Option to Tolerate Non-Wrapped Anon Functions

Currently, jslint will not allow this:

function (x) {
return x;
}

It, will complain that the function must have a name, unless the function is wrapped or assigned to a variable.

It is necessary to bypass this error, especially in CouchDB JS views, where functions exist on their own without a name.

This patch disables the error for this case, providing the option "--nofuncname".