| 1 |
{ |
| 2 |
/* |
| 3 |
* ES6 additions |
| 4 |
* ================= |
| 5 |
*/ |
| 6 |
|
| 7 |
"esnext": true, |
| 8 |
|
| 9 |
/* |
| 10 |
* ENVIRONMENTS |
| 11 |
* ================= |
| 12 |
*/ |
| 13 |
|
| 14 |
// Define globals exposed by modern browsers. |
| 15 |
"browser": true, |
| 16 |
|
| 17 |
// Define globals exposed by jQuery. |
| 18 |
"jquery": true, |
| 19 |
|
| 20 |
// Define globals exposed by Node.js. |
| 21 |
"node": true, |
| 22 |
|
| 23 |
/* |
| 24 |
* ENFORCING OPTIONS |
| 25 |
* ================= |
| 26 |
*/ |
| 27 |
|
| 28 |
// Force all variable names to use either camelCase style or UPPER_CASE |
| 29 |
// with underscores. |
| 30 |
"camelcase": true, |
| 31 |
|
| 32 |
// Prohibit use of == and != in favor of === and !==. |
| 33 |
"eqeqeq": true, |
| 34 |
|
| 35 |
// Enforce tab width of 2 spaces. |
| 36 |
"indent": 2, |
| 37 |
|
| 38 |
// Prohibit use of a variable before it is defined. |
| 39 |
"latedef": true, |
| 40 |
|
| 41 |
// Enforce line length to 80 characters |
| 42 |
"maxlen": 80, |
| 43 |
|
| 44 |
// Require capitalized names for constructor functions. |
| 45 |
"newcap": true, |
| 46 |
|
| 47 |
// Enforce use of single quotation marks for strings. |
| 48 |
"quotmark": "single", |
| 49 |
|
| 50 |
// Enforce placing 'use strict' at the top function scope |
| 51 |
// "strict": true, |
| 52 |
|
| 53 |
// Prohibit use of explicitly undeclared variables. |
| 54 |
"undef": true, |
| 55 |
|
| 56 |
// Warn when variables are defined but never used. |
| 57 |
"unused": true, |
| 58 |
|
| 59 |
/* |
| 60 |
* RELAXING OPTIONS |
| 61 |
* ================= |
| 62 |
*/ |
| 63 |
|
| 64 |
// Suppress warnings about == null comparisons. |
| 65 |
"eqnull": true, |
| 66 |
|
| 67 |
// Relax about comma-only lines. This is still valid airbnb style, BTW. |
| 68 |
"laxcomma": true |
| 69 |
} |