0

I have following .jshintrc file and use grunt-contrib-jshint:

{
"predef": [
    "after",
    "afterEach",
    "before",
    "beforeEach",
    "describe",
    "expect",
    "it",
    "jasmine",
    "ls",
    "moment",
    "runs",
    "sinon",
    "should",
    "spyOn",
    "vex",
    "waits",
    "waitsFor",
    "xit",
    "xdescribe"
    "Zombie"
],

"asi" : false,
"bitwise" : true,
"boss" : false,
"browser" : true,
"curly" : true,
"debug": false,
"devel": false,
"eqeqeq": true,
"evil": false,
"expr": true,
"forin": false,
"immed": true,
"jquery" : true,
"latedef" : false,
"laxbreak": false,
"multistr": true,
"newcap": true,
"noarg": true,
"node" : true,
"noempty": false,
"nonew": true,
"onevar": false,
"plusplus": false,
"regexp": false,
"strict": false,
"sub": false,
"trailing" : true,
"undef": true,
"unused": "vars"
}

As you see there is a line multistr: true, but it still throws me errors as:

Linting public/js/homepage.js...ERROR
[L93:C29] W043: Bad escaping of EOL. Use option multistr if needed.
JasonMArcher
  • 14,195
  • 22
  • 56
  • 52
Kosmetika
  • 20,774
  • 37
  • 108
  • 172

1 Answers1

1

You missed a comma after "xdescribe".

(This is why I always format my JSON like that:

{ "otherdef": false
, "predef":
, [ "after"
  , "afterEach"
  , "before"
  , "beforeEach"
  , "describe"
  , "expect"
  , "it"
  ]
, "foo": "bar"
, "fob": "baz"
}

so that missing commas are very visible)

punund
  • 4,321
  • 3
  • 34
  • 45