You will need to edit or create a file called .jshintrc, and you will have something like this:
{
"curly": false,
"eqeqeq": false,
"immed": true,
"latedef": true,
"newcap": true,
"noarg": true,
"sub": true,
"undef": true,
"boss": true,
"eqnull": true,
"browser": true,
"es5": true,
"smarttabs": true,
"expr": true,
"globals": {
"angular": true,
"console": true,
"expect": true,
"inject": true,
"describe": true,
"beforeEach": true,
"it": true,
"xit": true,
"xdescribe": true
}
}
Pay attention to xit and xdescribe under global values.
In your grunt file go to jshint task and do it
jshint: {
options: {
jshintrc: '.jshintrc'
}
}
source share