| 1 |
{ |
| 2 |
// Enforcing |
| 3 |
"eqeqeq" : true, // true: Require triple equals (===) for comparison |
| 4 |
"forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty() |
| 5 |
"freeze" : true, // true: prohibits overwriting prototypes of native objects such as Array, Date etc. |
| 6 |
"nonbsp" : true, // true: Prohibit "non-breaking whitespace" characters. |
| 7 |
"undef" : true, // true: Require all non-global variables to be declared (prevents global leaks) |
| 8 |
|
| 9 |
// Environments |
| 10 |
"browser" : true // Web Browser (window, document, etc) |
| 11 |
} |