dwilbank
dwilbank

Reputation: 2520

global variables can be defined inside comments?

So I'm doing a tutorial (a chapter on linting) and I get these errors

jakefile.js failed
4: task("default", ["lint"]);
   'task' is not defined.
7: task("lint", [],function(){
   'task' is not defined.
6: desc("Lint everything");
   'desc' is not defined.
9: var files = new jake.FileList();
   'jake' is not defined.

and the 'fix' is to put the following at the top of jakefile.js

/*global desc, task, jake, fail, complete */

whereas

What is this bizarreness?

The jake docs I found don't make any mention that this is a special jake syntax.

But it sure isn't regular JavaScript... Is it special lint syntax?

Upvotes: 0

Views: 772

Answers (0)

Related Questions