Skip to content

Instantly share code, notes, and snippets.

@lvl-svasseur
Created January 8, 2014 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lvl-svasseur/8323183 to your computer and use it in GitHub Desktop.
Save lvl-svasseur/8323183 to your computer and use it in GitHub Desktop.
{
// Details: https://github.com/victorporof/Sublime-JSHint#using-your-own-jshintrc-options
// Example: https://github.com/jshint/jshint/blob/master/examples/.jshintrc
// Documentation: http://www.jshint.com/docs/
// Enforcing
"indent": 4,
"quotmark": false,
"camelcase": true,
"newcap": true,
"curly": true, // true: Require {} for every new block or scope
"smarttabs": true,
"trailing": true,
"undef": true,
"unused": true,
// Relaxing
"bitwise": false, // true: Prohibit bitwise operators (&, |, ^, etc.)
"globalstrict": true,
"esnext": true,
"lastsemic": false,
"boss": true, // true: Tolerate assignments where comparisons would be expected
// Environments
"devel": true,
"jquery": true,
"browser": true,
"node": true,
// Custom Globals
"globals": {
"$": false,
"_": false,
"angular": false,
"alert": false,
"clearInterval": false,
"clearTimeout": false,
"console": false,
"document": false,
"localStorage": false,
"module": false,
"navigator": false,
"require": false,
"setTimeout": false,
"setInterval": false,
"$script": false,
"window": false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment