Skip to content

Instantly share code, notes, and snippets.

@kjlubick
Last active August 29, 2015 14:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjlubick/6e7f858e0e83662d1fe4 to your computer and use it in GitHub Desktop.
Save kjlubick/6e7f858e0e83662d1fe4 to your computer and use it in GitHub Desktop.
JSHint for Sublime Text 3 settings
{
// 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/options/
"browser": true,
"devel": true,
"esnext": true,
"jquery":true,
"globals": {},
"globalstrict": false,
"quotmark": false,
"smarttabs": true,
"trailing": true,
"undef": true,
"unused": true
}
{
// Simply using `node` without specifying a path sometimes doesn't work :(
// https://github.com/victorporof/Sublime-JSHint#oh-noez-command-not-found
// http://nodejs.org/#download
"node_path": {
"windows": "C:/Program Files/nodejs/node.exe",
"linux": "/usr/bin/nodejs",
"osx": "/usr/local/bin/node"
},
// Automatically lint on edit (Sublime Text 3 only).
"lint_on_edit": false,
// Configurable duration before re-linting.
"lint_on_edit_timeout": 1,
// Automatically lint when a file is loaded.
"lint_on_load": false,
// Automatically lint when a file is saved.
"lint_on_save": true,
// Highlight problematic regions when selected.
"highlight_selected_regions": true,
// Log the settings passed to JSHint from `.jshintrc`.
"print_diagnostics": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment