Created
October 12, 2015 13:46
-
-
Save regiellis/7fe62b35dcf069f71e76 to your computer and use it in GitHub Desktop.
React JSHint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
// 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