|
1 | 1 | {
|
2 |
| - "curly": true, // true: Require {} for every new block or scope |
3 |
| - "eqeqeq": true, // true: Require triple equals (===) for comparison |
4 |
| - "immed": true, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());` |
5 |
| - "latedef": true, // true: Require variables/functions to be defined before being used |
6 |
| - "newcap": true, // true: Require capitalization of all constructor functions e.g. `new F()` |
7 |
| - "noarg": true, // true: Prohibit use of `arguments.caller` and `arguments.callee` |
8 |
| - "undef": true, // true: Require all non-global variables to be declared (prevents global leaks) |
| 2 | + "curly": true, // Require {} for every new block or scope |
| 3 | + "eqeqeq": true, // Require triple equals (===) for comparison |
| 4 | + "immed": true, // Require immediate invocations to be wrapped in parens e.g. `(function () { } ());` |
| 5 | + "latedef": true, // Require variables/functions to be defined before being used |
| 6 | + "newcap": true, // Require capitalization of all constructor functions e.g. `new F()` |
| 7 | + "noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee` |
| 8 | + "undef": true, // Require all non-global variables to be declared (prevents global leaks) |
| 9 | + "unused": true, // Warns when you define and never use your variables |
9 | 10 | "node": true , // Node.js
|
10 | 11 | "bitwise": true, // Prohibits the use of bitwise operators such as ^ (XOR), | (OR)
|
11 | 12 | "indent": 2, // Enforces specific tab width for your code
|
12 | 13 | "noempty": true, // Warns when you have an empty block in your code
|
13 | 14 | "quotmark": "single", // Enforces the consistency of quotation marks
|
14 | 15 | "strict": false, // Requires all functions to run in ECMAScript 5's strict mode
|
15 | 16 | "trailing": true, // Makes it an error to leave a trailing whitespace in your code
|
16 |
| - "forin": true // Requires all for in loops to filter object's items |
| 17 | + "forin": true, // Requires all for in loops to filter object's items |
| 18 | + "camelCase": "true" // Force all variable names to use either camelCase style or UPPER_CASE with underscores |
17 | 19 | }
|
0 commit comments