1 | {
|
2 | /*
|
3 | * ENVIRONMENTS
|
4 | * =================
|
5 | */
|
6 |
|
7 | // Define globals exposed by Node.js.
|
8 | "node": true,
|
9 |
|
10 | /*
|
11 | * ENFORCING OPTIONS
|
12 | * =================
|
13 | */
|
14 |
|
15 | // Force all variable names to use either camelCase style or UPPER_CASE
|
16 | // with underscores.
|
17 | "camelcase": true,
|
18 |
|
19 | // Prohibit use of == and != in favor of === and !==.
|
20 | "eqeqeq": true,
|
21 |
|
22 | // Suppress warnings about == null comparisons.
|
23 | "eqnull": true,
|
24 |
|
25 | // Enforce tab width of 2 spaces.
|
26 | "indent": 2,
|
27 |
|
28 | // Prohibit use of a variable before it is defined.
|
29 | "latedef": true,
|
30 |
|
31 | // Require capitalized names for constructor functions.
|
32 | "newcap": true,
|
33 |
|
34 | // Enforce use of single quotation marks for strings.
|
35 | "quotmark": "single",
|
36 |
|
37 | // Prohibit trailing whitespace.
|
38 | "trailing": true,
|
39 |
|
40 | // Prohibit use of explicitly undeclared variables.
|
41 | "undef": true,
|
42 |
|
43 | // Warn when variables are defined but never used.
|
44 | "unused": true,
|
45 |
|
46 | // Enforce placing 'use strict' at the top function scope
|
47 | "strict": false,
|
48 |
|
49 | // assume strict mode
|
50 | "globalstrict": true
|
51 | }
|