Skip to content

Instantly share code, notes, and snippets.

@bryanchriswhite
Created March 15, 2013 17:30
Show Gist options
  • Save bryanchriswhite/5171595 to your computer and use it in GitHub Desktop.
Save bryanchriswhite/5171595 to your computer and use it in GitHub Desktop.
Angular project's .jshintrc file for use with grunt and the jshint plugin.
{
"node" : true,
"browser" : true,
"es5" : true,
"esnext" : true,
"bitwise" : true,
"camelcase": true,
"curly" : true,
"eqeqeq" : true,
"immed" : true,
"indent" : 2,
"latedef" : true,
"newcap" : true,
"noarg" : true,
"quotmark" : "single",
"regexp" : true,
"undef" : true,
"unused" : true,
"strict" : true,
"trailing" : false,
"smarttabs": true,
"white" : false,
"globals" : {
"$" : false,
"angular" : false,
"browser" : false,
"repeater" : false,
"element" : false,
"inject" : false,
"afterEach" : false,
"beforeEach" : false,
"confirm" : false,
"context" : false,
"describe" : false,
"expect" : false,
"it" : false,
"jasmine" : false,
"JSHINT" : false,
"mostRecentAjaxRequest": false,
"qq" : false,
"runs" : false,
"spyOn" : false,
"spyOnEvent" : false,
"waitsFor" : false,
"xdescribe" : false
}
}
@ardianys
Copy link

+1

@zubairalam
Copy link

You saved my time. Thanks :)

@peteratt
Copy link

Should we also add "xit": false to the globals list?

@masterspambot
Copy link

now you can just use option:

  "jasmine" : true

@Mohakjuneja
Copy link

Where do I put this file in my angular app?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment