Skip to content

Instantly share code, notes, and snippets.

@mikeerickson
Last active December 31, 2015 10:49
Show Gist options
  • Select an option

  • Save mikeerickson/7975294 to your computer and use it in GitHub Desktop.

Select an option

Save mikeerickson/7975294 to your computer and use it in GitHub Desktop.
Default .jshintrc used by Sublime jsHint plugin
{
"curly": true, // true: Require {} for every new block or scope
"eqeqeq": true, // true: Require triple equals (===) for comparison
"immed": true, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
"latedef": true, // true: Require variables/functions to be defined before being used
"newcap": true, // true: Require capitalization of all constructor functions e.g. `new F()`
"noarg": true, // true: Prohibit use of `arguments.caller` and `arguments.callee`
"sub": true, // true: Tolerate using `[]` notation when it can still be expressed in dot notation
"undef": true, // true: Require all non-global variables to be declared (prevents global leaks)
"boss": true, // true: Tolerate assignments where comparisons would be expected
"eqnull": true, // true: Tolerate use of `== null`
"node": true // Node.js
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment