-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jshintrc
29 lines (26 loc) · 820 Bytes
/
.jshintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
// 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
}
}