-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jshintrc
51 lines (46 loc) · 2.47 KB
/
.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
// http://jshint.com/docs/options
"curly" : true, // Require curly braces around blocks in loops and conditionals
"eqeqeq" : true, // Prohibit the use of == and != in favor of === and !==
"es3" : true, // Adhere to ECMAScript 3 specification
"forin" : true, // Require all for in loops to filter object's items (hasOwnProperty)
"latedef" : true, // Prohibit the use of a variable before it was defined
"noarg" : true, // Prohibit the use of arguments.caller and arguments.callee
"nonbsp" : true, // Warn about "non-breaking whitespace" characters
"undef" : true, // Prohibit the use of explicitly undeclared variables
"unused" : true, // Warn when you define and never use your variables
"globals": {
"Opal": true,
"OpalNode": true,
"callPhantom": true,
"JSON": true
},
"browser": true,
"node": true,
// Currently the following checks are failing:
"-W003": false, // 'variable' was used before it was defined
"-W004": false, // 'variable' is already defined
"-W018": false, // Confusing use of '!'
"-W021": false, // '$ClassName' is a function
"-W024": false, // Expected an identifier and instead saw 'eval' (a reserved word)
"-W027": false, // Unreachable ';' after 'return'
"-W032": false, // Unnecessary semicolon
"-W030": false, // Expected an assignment or function call and instead saw an expression
"-W033": false, // Missing semicolon
"-W038": false, // 'variable' used out of scope
"-W041": false, // Use '===' to compare with 'true'
"-W049": false, // Unexpected escaped character '<' in regular expression
"-W053": false, // Do not use String as a constructor
"-W058": false, // Missing '()' invoking a constructor
"-W061": false, // eval can be harmful
"-W065": false, // Missing radix parameter
"-W069": false, // ['prop'] is better written in dot notation
"-W080": false, // It's not necessary to initialize 'result' to 'undefined'
"-W083": false, // Don't make functions within a loop
"-W086": false, // Expected a 'break' statement before 'case'
"-W089": false, // The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype
"-W093": false, // Did you mean to return a conditional instead of an assignment?
"-W098": false, // 'variable' is defined but never used
"-W116": false, // Expected '===' and instead saw '=='
"-W120": false // You might be leaking a variable ($ClassName) here
}