| { |
| |
| // 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" : false, // 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 |
| |
| // 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": { |
| "org" : false, |
| "rwt": false, |
| "namespace": false, |
| "rap": false, |
| "SWT": false, |
| |
| "qxsettings": true, |
| "qxvariants": true, |
| |
| // jasmine |
| "jasmine" : false, |
| "beforeEach": false, |
| "afterEach": false, |
| "describe": false, |
| "it": false, |
| "runs": false, |
| "waitsFor": false, |
| "expect": false, |
| "spyOn": false, |
| "any" : false, |
| "same" : false, |
| "mock" : false, |
| |
| // asserts |
| "assertTrue": true, |
| "assertFalse": true, |
| "assertNull": true, |
| "assertNotNull": true, |
| "assertEquals": true, |
| "assertIdentical": true, |
| "assertContains": true, |
| "assertContainsNot": true, |
| "assertLarger": true, |
| "assertSmaller": true, |
| "fail": true |
| } |
| |
| } |