|
@@ -1,20 +1,10 @@
|
1
|
1
|
{
|
2
|
|
- // Refer to http://jshint.com/docs/options/ for an exhaustive list of options
|
3
|
|
- "asi": false, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
|
4
|
2
|
"browser": true, // Web Browser (window, document, etc)
|
5
|
|
- "curly": false, // true: Require {} for every new block or scope
|
6
|
3
|
"esversion": 6,
|
7
|
|
- "evil": true, // true: Tolerate use of `eval` and `new Function()`
|
8
|
4
|
"expr": true, // true: Tolerate `ExpressionStatement` as Programs
|
9
|
|
- "indent": 4, // {int} Number of spaces to use for indentation
|
|
5
|
+ "jasmine": true,
|
10
|
6
|
"latedef": false, //This option prohibits the use of a variable before it was defined
|
11
|
7
|
"laxbreak": true, //Ignore line breaks around "=", "==", "&&", etc.
|
12
|
8
|
"loopfunc": true, // true: Tolerate functions being defined in loops
|
13
|
|
- "maxlen": 80, // {int} Max number of characters per line
|
14
|
|
- "newcap": true, // true: Require capitalization of all constructor functions e.g. `new F()`
|
15
|
|
- "node": true, // Node.js
|
16
|
|
- "trailing": true,
|
17
|
|
- "undef": true, // true: Require all non-global variables to be declared (prevents global leaks)
|
18
|
|
- "white": true,
|
19
|
|
- "jasmine": true
|
|
9
|
+ "node": true // Node.js
|
20
|
10
|
}
|