Allow unnamed function with JSCS

68 Views Asked by At

I have a CouchDB map.js file which expects code to be defined within an unnamed function:

function(doc){
      // do something
}

Because JSCS expects the function to be named, it says:

parseError: Unexpected token (

How can I ignore this error without changing my code?

I don't want to add inline rules like // jscs:disable

0

There are 0 best solutions below