|
@@ -1,15 +1,16 @@
|
1
|
1
|
{
|
2
|
|
- "asi": false,
|
3
|
|
- "expr": true,
|
4
|
|
- "loopfunc": true,
|
5
|
|
- "curly": false,
|
6
|
|
- "evil": true,
|
|
2
|
+ "asi": false, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
|
|
3
|
+ "expr": true, // true: Tolerate `ExpressionStatement` as Programs
|
|
4
|
+ "loopfunc": true, // true: Tolerate functions being defined in loops
|
|
5
|
+ "curly": false, // true: Require {} for every new block or scope
|
|
6
|
+ "evil": true, // true: Tolerate use of `eval` and `new Function()`
|
7
|
7
|
"white": true,
|
8
|
|
- "undef": true,
|
9
|
|
- "browser": true,
|
10
|
|
- "node": true,
|
|
8
|
+ "undef": true, // true: Require all non-global variables to be declared (prevents global leaks)
|
|
9
|
+ "browser": true, // Web Browser (window, document, etc)
|
|
10
|
+ "node": true, // Node.js
|
11
|
11
|
"trailing": true,
|
12
|
|
- "indent": 4,
|
13
|
|
- "latedef": true,
|
14
|
|
- "newcap": true
|
15
|
|
-}
|
|
12
|
+ "indent": 4, // {int} Number of spaces to use for indentation
|
|
13
|
+ "latedef": true, // true: Require variables/functions to be defined before being used
|
|
14
|
+ "newcap": true, // true: Require capitalization of all constructor functions e.g. `new F()`
|
|
15
|
+ "maxlen": 80 // {int} Max number of characters per line
|
|
16
|
+}
|