Name: js-handler/node_modules/restify/node_modules/keep-alive-agent/.jshintrc
| 1: | { |
| 2: | // == Enforcing Options =============================================== |
| 3: | // |
| 4: | // These options tell JSHint to be more strict towards your code. Use |
| 5: | // them if you want to allow only a safe subset of JavaScript, very |
| 6: | // useful when your codebase is shared with a big number of developers |
| 7: | // with different skill levels. |
| 8: | |
| 9: | "bitwise" : true, // Prohibit bitwise operators (&, |, ^, etc.). |
| 10: | "curly" : false, // Require {} for every new block or scope. |
| 11: | "eqeqeq" : true, // Require triple equals i.e. `===`. |
| 12: | "forin" : true, // Tolerate `for in` loops without `hasOwnPrototype`. |
| 13: | "immed" : true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );` |
| 14: | "latedef" : true, // Prohibit variable use before definition. |
| 15: | "newcap" : true, // Require capitalization of all constructor functions e.g. `new F()`. |
| 16: | "noarg" : true, // Prohibit use of `arguments.caller` and `arguments.callee`. |
| 17: | "noempty" : true, // Prohibit use of empty blocks. |
| 18: | "nonew" : true, // Prohibit use of constructors for side-effects. |
| 19: | "plusplus" : false, // Prohibit use of `++` & `--`. |
| 20: | "regexp" : false, // Prohibit `.` and `[^...]` in regular expressions. |
| 21: | "undef" : true, // Require all non-global variables be declared before they are used. |
| 22: | "strict" : false, // Require `use strict` pragma in every file. |
| 23: | "trailing" : false, // Prohibit trailing whitespaces. |
| 24: | |
| 25: | // == Relaxing Options ================================================ |
| 26: | // |
| 27: | // These options allow you to suppress certain types of warnings. Use |
| 28: | // them only if you are absolutely positive that you know what you are |
| 29: | // doing. |
| 30: | |
| 31: | "asi" : false, // Tolerate Automatic Semicolon Insertion (no semicolons). |
| 32: | "boss" : true, // Tolerate assignments inside if, for & while. Usually conditions & loops are for comparison, not assignments. |
| 33: | "debug" : false, // Allow debugger statements e.g. browser breakpoints. |
| 34: | "eqnull" : false, // Tolerate use of `== null`. |
| 35: | "es5" : true, // Allow EcmaScript 5 syntax. |
| 36: | "esnext" : false, // Allow ES.next specific features such as `const` and `let`. |
| 37: | "evil" : false, // Tolerate use of `eval`. |
| 38: | "expr" : false, // Tolerate `ExpressionStatement` as Programs. |
| 39: | "funcscope" : false, // Tolerate declarations of variables inside of control structures while accessing them later from the outside. |
| 40: | "globalstrict" : false, // Allow global "use strict" (also enables 'strict'). |
| 41: | "iterator" : false, // Allow usage of __iterator__ property. |
| 42: | "lastsemic" : false, // Tolerat missing semicolons when the it is omitted for the last statement in a one-line block. |
| 43: | "laxbreak" : false, // Tolerate unsafe line breaks e.g. `return [\n] x` without semicolons. |
| 44: | "laxcomma" : true, // Suppress warnings about comma-first coding style. |
| 45: | "loopfunc" : false, // Allow functions to be defined within loops. |
| 46: | "multistr" : false, // Tolerate multi-line strings. |
| 47: | "onecase" : false, // Tolerate switches with just one case. |
| 48: | "proto" : false, // Tolerate __proto__ property. This property is deprecated. |
| 49: | "regexdash" : false, // Tolerate unescaped last dash i.e. `[-...]`. |
| 50: | "scripturl" : false, // Tolerate script-targeted URLs. |
| 51: | "smarttabs" : true, // Tolerate mixed tabs and spaces when the latter are used for alignmnent only. |
| 52: | "shadow" : false, // Allows re-define variables later in code e.g. `var x=1; x=2;`. |
| 53: | "sub" : false, // Tolerate all forms of subscript notation besides dot notation e.g. `dict['key']` instead of `dict.key`. |
| 54: | "supernew" : false, // Tolerate `new function () { ... };` and `new Object;`. |
| 55: | "validthis" : false, // Tolerate strict violations when the code is running in strict mode and you use this in a non-constructor function. |
| 56: | |
| 57: | // == Environments ==================================================== |
| 58: | // |
| 59: | // These options pre-define global variables that are exposed by |
| 60: | // popular JavaScript libraries and runtime environments—such as |
| 61: | // browser or node.js. |
| 62: | |
| 63: | "browser" : false, // Standard browser globals e.g. `window`, `document`. |
| 64: | "couch" : false, // Enable globals exposed by CouchDB. |
| 65: | "devel" : false, // Allow development statements e.g. `console.log();`. |
| 66: | "dojo" : false, // Enable globals exposed by Dojo Toolkit. |
| 67: | "jquery" : false, // Enable globals exposed by jQuery JavaScript library. |
| 68: | "mootools" : false, // Enable globals exposed by MooTools JavaScript framework. |
| 69: | "node" : true, // Enable globals available when code is running inside of the NodeJS runtime environment. |
| 70: | "nonstandard" : false, // Define non-standard but widely adopted globals such as escape and unescape. |
| 71: | "prototypejs" : false, // Enable globals exposed by Prototype JavaScript framework. |
| 72: | "rhino" : false, // Enable globals available when your code is running inside of the Rhino runtime environment. |
| 73: | "wsh" : false, // Enable globals available when your code is running as a script for the Windows Script Host. |
| 74: | |
| 75: | // == JSLint Legacy =================================================== |
| 76: | // |
| 77: | // These options are legacy from JSLint. Aside from bug fixes they will |
| 78: | // not be improved in any way and might be removed at any point. |
| 79: | |
| 80: | "nomen" : false, // Prohibit use of initial or trailing underbars in names. |
| 81: | "onevar" : false, // Allow only one `var` statement per function. |
| 82: | "passfail" : false, // Stop on first error. |
| 83: | "white" : false, // Check against strict whitespace and indentation rules. |
| 84: | |
| 85: | // == Undocumented Options ============================================ |
| 86: | // |
| 87: | // While I've found these options in [example1][2] and [example2][3] |
| 88: | // they are not described in the [JSHint Options documentation][4]. |
| 89: | // |
| 90: | // [4]: http://www.jshint.com/options/ |
| 91: | |
| 92: | "maxerr" : 100, // Maximum errors before stopping. |
| 93: | "predef" : [ // Extra globals. |
| 94: | //"exampleVar", |
| 95: | //"anotherCoolGlobal", |
| 96: | //"iLoveDouglas" |
| 97: | ], |
| 98: | "indent" : 4 // Specify indentation spacing |
| 99: | } |
