2015-04-16 11:22:12 +02:00
|
|
|
{
|
|
|
|
"asi": true, // allow missing semicolons
|
|
|
|
"curly": true, // require braces
|
|
|
|
"eqnull": true, // ignore ==null
|
2017-03-10 21:04:14 +01:00
|
|
|
//"eqeqeq": true, // enforce ===
|
|
|
|
"freeze": true, // don't allow override
|
|
|
|
"indent": 4, // default indent of 4
|
2015-04-16 11:22:12 +02:00
|
|
|
"forin": true, // require property filtering in "for in" loops
|
|
|
|
"immed": true, // require immediate functions to be wrapped in ( )
|
|
|
|
"nonbsp": true, // warn on unexpected whitespace breaking chars
|
|
|
|
//"strict": true, // commented out for now as it causes 100s of warnings, but want to get there eventually
|
|
|
|
//"unused": true, // Check for unused functions and variables
|
|
|
|
"loopfunc": true, // allow functions to be defined in loops
|
2016-04-07 23:18:28 +02:00
|
|
|
//"expr": true, // allow ternery operator syntax...
|
2017-04-06 12:12:11 +02:00
|
|
|
"shadow": true, // allow variable shadowing (re-use of names...)
|
2016-04-07 23:18:28 +02:00
|
|
|
"sub": true, // don't warn that foo['bar'] should be written as foo.bar
|
2017-06-23 22:49:35 +02:00
|
|
|
"proto": true, // allow setting of __proto__ in node < v0.12,
|
|
|
|
"esversion": 6 // allow es6
|
2015-04-16 11:22:12 +02:00
|
|
|
}
|