michael@0: { michael@0: // JSHint Default Configuration File (as on JSHint website) michael@0: // See http://jshint.com/docs/ for more details michael@0: michael@0: // Modify for RIL usage. michael@0: michael@0: "maxerr" : 10000, // {int} Maximum error before stopping michael@0: michael@0: // Enforcing michael@0: "bitwise" : false, // true: Prohibit bitwise operators (&, |, ^, etc.) michael@0: "camelcase" : false, // true: Identifiers must be in camelCase michael@0: "curly" : false, // true: Require {} for every new block or scope michael@0: "eqeqeq" : false, // true: Require triple equals (===) for comparison michael@0: "forin" : false, // true: Require filtering for..in loops with obj.hasOwnProperty() michael@0: "immed" : false, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());` michael@0: //"indent" : 2, // {int} Number of spaces to use for indentation michael@0: "latedef" : false, // true: Require variables/functions to be defined before being used michael@0: "newcap" : false, // true: Require capitalization of all constructor functions e.g. `new F()` michael@0: "noarg" : true, // true: Prohibit use of `arguments.caller` and `arguments.callee` michael@0: "noempty" : false, // true: Prohibit use of empty blocks michael@0: "nonew" : false, // true: Prohibit use of constructors for side-effects (without assignment) michael@0: "plusplus" : false, // true: Prohibit use of `++` & `--` michael@0: "quotmark" : false, // Quotation mark consistency: michael@0: // false : do nothing (default) michael@0: // true : ensure whatever is used is consistent michael@0: // "single" : require single quotes michael@0: // "double" : require double quotes michael@0: "undef" : false, // true: Require all non-global variables to be declared (prevents global leaks) michael@0: "unused" : false, // true: Require all defined variables be used michael@0: "strict" : false, // true: Requires all functions run in ES5 Strict Mode michael@0: "trailing" : false, // true: Prohibit trailing whitespaces michael@0: "maxparams" : false, // {int} Max number of formal params allowed per function michael@0: "maxdepth" : false, // {int} Max depth of nested blocks (within functions) michael@0: "maxstatements" : false, // {int} Max number statements per function michael@0: "maxcomplexity" : false, // {int} Max cyclomatic complexity per function michael@0: "maxlen" : false, // {int} Max number of characters per line michael@0: michael@0: // Relaxing michael@0: "asi" : false, // true: Tolerate Automatic Semicolon Insertion (no semicolons) michael@0: "boss" : false, // true: Tolerate assignments where comparisons would be expected michael@0: "debug" : false, // true: Allow debugger statements e.g. browser breakpoints. michael@0: "eqnull" : true, // true: Tolerate use of `== null` michael@0: "es5" : false, // true: Allow ES5 syntax (ex: getters and setters) michael@0: "esnext" : false, // true: Allow ES.next (ES6) syntax (ex: `const`) michael@0: "moz" : true, // true: Allow Mozilla specific syntax (extends and overrides esnext features) michael@0: // (ex: `for each`, multiple try/catch, function expression…) michael@0: "evil" : false, // true: Tolerate use of `eval` and `new Function()` michael@0: "expr" : false, // true: Tolerate `ExpressionStatement` as Programs michael@0: "funcscope" : false, // true: Tolerate defining variables inside control statements" michael@0: "globalstrict" : true, // true: Allow global "use strict" (also enables 'strict') michael@0: "iterator" : false, // true: Tolerate using the `__iterator__` property michael@0: "lastsemic" : false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block michael@0: "laxbreak" : true, // true: Tolerate possibly unsafe line breakings michael@0: "laxcomma" : false, // true: Tolerate comma-first style coding michael@0: "loopfunc" : false, // true: Tolerate functions being defined in loops michael@0: "multistr" : false, // true: Tolerate multi-line strings michael@0: "proto" : true, // true: Tolerate using the `__proto__` property michael@0: "scripturl" : false, // true: Tolerate script-targeted URLs michael@0: "smarttabs" : false, // true: Tolerate mixed tabs/spaces when used for alignment michael@0: "shadow" : false, // true: Allows re-define variables later in code e.g. `var x=1; x=2;` michael@0: "sub" : false, // true: Tolerate using `[]` notation when it can still be expressed in dot notation michael@0: "supernew" : false, // true: Tolerate `new function () { ... };` and `new Object;` michael@0: "validthis" : true, // true: Tolerate using this in a non-constructor function michael@0: michael@0: // Environments michael@0: "browser" : false, // Web Browser (window, document, etc) michael@0: "couch" : false, // CouchDB michael@0: "devel" : true, // Development/debugging (alert, confirm, etc) michael@0: "dojo" : false, // Dojo Toolkit michael@0: "jquery" : false, // jQuery michael@0: "mootools" : false, // MooTools michael@0: "node" : false, // Node.js michael@0: "nonstandard" : false, // Widely adopted globals (escape, unescape, etc) michael@0: "prototypejs" : false, // Prototype and Scriptaculous michael@0: "rhino" : false, // Rhino michael@0: "worker" : true, // Web Workers michael@0: "wsh" : false, // Windows Scripting Host michael@0: "yui" : false, // Yahoo User Interface michael@0: michael@0: // Legacy michael@0: "nomen" : false, // true: Prohibit dangling `_` in variables michael@0: "onevar" : false, // true: Allow only one `var` statement per function michael@0: "passfail" : false, // true: Stop on first error michael@0: "white" : false, // true: Check against strict whitespace and indentation rules michael@0: michael@0: // Custom Globals michael@0: "predef" : [ ], // additional predefined global variables michael@0: michael@0: "globals": { michael@0: "ChromeWorker": false, michael@0: "Components": false, michael@0: "DOMRequestIpcHelper": false, michael@0: "ObjectWrapper": false, michael@0: "PhoneNumberUtils": false, michael@0: "RILNetworkInterface": false, michael@0: "Services": false, michael@0: "Uint8Array": false, michael@0: "WAP": false, michael@0: "XPCOMUtils": false, michael@0: "cpmm": false, michael@0: "dump": false, michael@0: "gAudioManager": false, michael@0: "gMessageManager": false, michael@0: "gMobileMessageDatabaseService": false, michael@0: "gMobileMessageService": false, michael@0: "gNetworkManager": false, michael@0: "gPowerManagerService": false, michael@0: "gSettingsService": false, michael@0: "gSmsService": false, michael@0: "gSystemMessenger": false, michael@0: "gSystemWorkerManager": false, michael@0: "gTimeService": false, michael@0: "gUUIDGenerator": false, michael@0: "ppmm": true, michael@0: michael@0: "__end_guardian_for_easy_sorting__": false michael@0: } michael@0: }