Skip to content

Instantly share code, notes, and snippets.

@regiellis
Created October 12, 2015 13:46
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 regiellis/7fe62b35dcf069f71e76 to your computer and use it in GitHub Desktop.
Save regiellis/7fe62b35dcf069f71e76 to your computer and use it in GitHub Desktop.
React JSHint
{
// Environments - these prevent warnings about the use of some global
// variables. e.g. 'browser' assumes a 'window' global is available, etc.
"browser": true,
"browserify": true,
"devel": true,
// Var names must be camelCase or UPPER_CASE
"camelcase": true,
// Loops and conditionals must have curly brackets
"curly": true,
// Allow ES6 features
"esnext": true,
// 4 space indent (does not create warnings)
"indent": 4,
// Constructor functions must be capitalised
"newcap": true,
// Prevent use of undefined variables
"undef": true,
// Warn about unused variables
"unused": true,
//Avoid the 'React could not be found' error, also ignore $ error if you use jquery
"globals": {
"React": false,
"$": false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment