Created
March 15, 2013 17:30
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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 | |
} | |
} |
+1
You saved my time. Thanks :)
Should we also add "xit": false
to the globals
list?
now you can just use option:
"jasmine" : true
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
👍 thanks for this man :)