-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jshintrc
41 lines (34 loc) · 1.96 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
{
// 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" : "nofunc", // Prohibit the use of a variable before it was defined (allow function declarations to be ignored)
"noarg" : true, // Prohibit the use of arguments.caller and arguments.callee
"undef" : true, // Prohibit the use of explicitly undeclared variables
"unused" : true, // Warn when you define and never use your variables
"predef" : ["Opal", "JSON", "Java", "OpalNode", "jsyaml"],
"browser": true,
"node": true,
// Currently the following checks are failing:
// To investigate:
"-W053": false, // Do not use String as a constructor
"-W069": false, // ['prop'] is better written in dot notation
"-W089": false, // The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype
// Compiler:
"-W021": false, // '$ClassName' is a function
"-W027": false, // Unreachable ';' after 'return'
"-W030": false, // Expected an assignment or function call and instead saw an expression
"-W032": false, // Unnecessary semicolon
"-W033": false, // Missing semicolon
"-W083": false, // Don't make functions within a loop
"-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
// Keeping these:
"-W061": false, // eval can be harmful
"-W086": false, // Expected a 'break' statement before 'case'
"-W100": false // This character may get silently deleted by one or more browsers
}