blob: 456e6ab41ebbd23a04cb7e99a556e3d17b874914 [file] [log] [blame]
{
// Enforcing Options
"curly" : true, // enforce curly braces around blocks in loops and conditionals
"immed" : true, // prohibit the use of immediate function invocations without wrapping them in parentheses
"latedef" : "nofunc", // prohibit the use of a variable before it was defined
"newcap": true, // enforce capitalized names of constructor functions
"nonew" : true, // prohibit the use of constructor functions for side-effects
"trailing" : true, // prohibit trailing whitespace
"undef": true, // prohibit the use of explicitly undeclared variables
"unused" : true, // prohibit unused local variables
// Relaxing Options
"eqnull" : true, // tolerate use of `== null`
"evil" : true, // tolerate use of `eval`
"funcscope" : true, // tolerate declarations of variables inside of control structures while accessing them later from the outside
"laxbreak": true, // suppress most of the warnings about possibly unsafe line breakings
"shadow" : true, // tolerate variable shadowing, i.e. re-define variables that have already be defined
"sub" : true, // tolerate [] notation when it can be expressed in dot notation, e.g. `dict['key']` instead of `dict.key`
// Globals
"browser" : true, // globals exposed by modern browsers e.g. `window`, `document`, etc.
"globals": {
"rwt": false,
"namespace": false,
"rap": true,
"SWT": true
}
}