Skip to content

Instantly share code, notes, and snippets.

@jamilbk
Created June 11, 2013 00:37
Show Gist options
  • Save jamilbk/5753675 to your computer and use it in GitHub Desktop.
Save jamilbk/5753675 to your computer and use it in GitHub Desktop.
jshintrc
{
// See http://www.jshint.com/options/ for in-depth explanations
// Predefined globals that JSHint ignores
"browser" : true, // standard globals like 'window'
"devel" : true, // development globals, e.g. 'console'
"nonstandard" : true, // widely-adopted globals, e.g. 'escape'
"node" : true,
"jquery" : true,
"predef" : [ // extra globals
"Backbone",
"JST",
"MTD",
"google",
"_",
// Jasmine
"describe",
"beforeEach",
"afterEach",
"loadFixtures",
"expect",
"before",
"after",
"it",
"mixpanel",
// Moment JS Date library
"moment",
// RequireJS
"requirejs",
"define",
// Misc projects
"Presense",
"Refuge"
],
// Development
"debug" : false, // warn about debugger statements
// ECMAScript 5
"es5" : true, // allow ES5 syntax
// Enforcing
"bitwise" : true, // prohibit the use of bitwise operations (slow and '&' is usually supposed to be '&&')
"curly" : true, // require {} for all blocks/scopes
"latedef" : true, // prohibit variable use before definition ("hoisting")
"noempty" : true, // prohibit empty blocks
"trailing" : true, // no trailing whitespace is allowed
"undef" : true, // prevent the use of undeclared variables
// Relaxing
"sub" : true, // allow all subscript notation, including '[]'
"laxcomma" : true, // allow commas after line breaks in lists
"strict" : false // don't force strict mode
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment