2014-04-13 12:25:47 +00:00
|
|
|
{
|
2015-09-11 03:05:53 +00:00
|
|
|
// Refer to http://jshint.com/docs/options/ for an exhaustive list of options
|
2014-10-14 14:42:55 +00:00
|
|
|
"asi": false, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
|
|
|
|
"expr": true, // true: Tolerate `ExpressionStatement` as Programs
|
|
|
|
"loopfunc": true, // true: Tolerate functions being defined in loops
|
|
|
|
"curly": false, // true: Require {} for every new block or scope
|
|
|
|
"evil": true, // true: Tolerate use of `eval` and `new Function()`
|
2014-04-13 12:25:47 +00:00
|
|
|
"white": true,
|
2014-10-14 14:42:55 +00:00
|
|
|
"undef": true, // true: Require all non-global variables to be declared (prevents global leaks)
|
|
|
|
"browser": true, // Web Browser (window, document, etc)
|
|
|
|
"node": true, // Node.js
|
2014-04-13 12:25:47 +00:00
|
|
|
"trailing": true,
|
2014-10-14 14:42:55 +00:00
|
|
|
"indent": 4, // {int} Number of spaces to use for indentation
|
|
|
|
"latedef": true, // true: Require variables/functions to be defined before being used
|
|
|
|
"newcap": true, // true: Require capitalization of all constructor functions e.g. `new F()`
|
2015-09-11 02:42:15 +00:00
|
|
|
"maxlen": 80, // {int} Max number of characters per line
|
2015-09-11 03:05:53 +00:00
|
|
|
"latedef": false, //This option prohibits the use of a variable before it was defined
|
|
|
|
"laxbreak": true //Ignore line breaks around "=", "==", "&&", etc.
|
|
|
|
}
|