|
20 | 20 |
|
21 | 21 | // Force all variable names to use either camelCase style or UPPER_CASE |
22 | 22 | // with underscores. |
23 | | - "camelcase":true, |
| 23 | + "camelcase":false, |
24 | 24 |
|
25 | 25 | // Prohibit use of == and != in favor of === and !==. |
26 | 26 | "eqeqeq": true, |
27 | 27 |
|
28 | 28 | // Suppress warnings about == null comparisons. |
29 | 29 | "eqnull": true, |
30 | 30 |
|
31 | | - // Enforce tab width of 2 spaces. |
32 | | - "indent": 2, |
33 | | - |
34 | 31 | // Prohibit use of a variable before it is defined. |
35 | 32 | "latedef": true, |
36 | 33 |
|
|
49 | 46 | // Warn when variables are defined but never used. |
50 | 47 | "unused": true, |
51 | 48 |
|
52 | | - // Enforce line length to 80 characters |
53 | | - "maxlen": 80, |
| 49 | + // This option requires you to always put curly braces around blocks in loops and conditionals. |
| 50 | + "curly": true, |
| 51 | + |
| 52 | + // This options prohibits overwriting prototypes of native objects such as Array, Date and so on. |
| 53 | + "freeze": true, |
| 54 | + |
| 55 | + // This option requires you to capitalize names of constructor functions. |
| 56 | + "newcap": true, |
| 57 | + |
| 58 | + // This option warns about "non-breaking whitespace" characters. |
| 59 | + "nonbsp": true, |
| 60 | + |
| 61 | + // This option suppresses warnings about the use of assignments in cases where comparisons are expected. |
| 62 | + "boss": true, |
| 63 | + |
| 64 | + // This option suppresses most of the warnings about possibly unsafe line breakings in your code. |
| 65 | + "laxbreak": true, |
| 66 | + |
| 67 | + // This option lets you set the max number of formal parameters allowed per function. |
| 68 | + "maxparams": 4, |
| 69 | + |
| 70 | + // This option lets you control how nested do you want your blocks to be. |
| 71 | + "maxdepth": 3, |
| 72 | + |
| 73 | + // Suppress warnings about unnecessary semicolons |
| 74 | + "-W032": true, |
| 75 | + |
| 76 | + // Suppress warnings about empty blocks |
| 77 | + "-W035": true, |
54 | 78 |
|
55 | | - //Enforce placing 'use strict' at the top function scope |
56 | | - "strict": true |
| 79 | + //Suppress warnings about redefining parameters |
| 80 | + "-W004": true |
57 | 81 | } |