Websocket
[VSoRC/.git] / node_modules / websocket / .jshintrc
1 {
2         // JSHint Default Configuration File (as on JSHint website)
3         // See http://jshint.com/docs/ for more details
4
5         "maxerr"        : 50,       // {int} Maximum error before stopping
6
7         // Enforcing
8         "bitwise"       : false,    // true: Prohibit bitwise operators (&, |, ^, etc.)
9         "camelcase"     : false,    // true: Identifiers must be in camelCase
10         "curly"         : true,     // true: Require {} for every new block or scope
11         "eqeqeq"        : true,     // true: Require triple equals (===) for comparison
12         "freeze"        : true,     // true: prohibits overwriting prototypes of native objects such as Array, Date etc.
13         "forin"         : false,    // true: Require filtering for..in loops with obj.hasOwnProperty()
14         "immed"         : true,     // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
15         "latedef"       : "nofunc", // true: Require variables/functions to be defined before being used
16         "newcap"        : true,     // true: Require capitalization of all constructor functions e.g. `new F()`
17         "noarg"         : true,     // true: Prohibit use of `arguments.caller` and `arguments.callee`
18         "noempty"       : true,     // true: Prohibit use of empty blocks
19         "nonbsp"        : true,     // true: Prohibit "non-breaking whitespace" characters.
20         "nonew"         : true,     // true: Prohibit use of constructors for side-effects (without assignment)
21         "plusplus"      : false,    // true: Prohibit use of `++` & `--`
22         "quotmark"      : "single", // Quotation mark consistency:
23                                     //   false    : do nothing (default)
24                                     //   true     : ensure whatever is used is consistent
25                                     //   "single" : require single quotes
26                                     //   "double" : require double quotes
27         "undef"         : true,     // true: Require all non-global variables to be declared (prevents global leaks)
28         "unused"        : "vars",   // vars: Require all defined variables be used, ignore function params
29         "strict"        : false,    // true: Requires all functions run in ES5 Strict Mode
30         "maxparams"     : false,    // {int} Max number of formal params allowed per function
31         "maxdepth"      : false,    // {int} Max depth of nested blocks (within functions)
32         "maxstatements" : false,    // {int} Max number statements per function
33         "maxcomplexity" : false,    // {int} Max cyclomatic complexity per function
34         "maxlen"        : false,    // {int} Max number of characters per line
35
36         // Relaxing
37         "asi"           : false,     // true: Tolerate Automatic Semicolon Insertion (no semicolons)
38         "boss"          : false,     // true: Tolerate assignments where comparisons would be expected
39         "debug"         : false,     // true: Allow debugger statements e.g. browser breakpoints.
40         "eqnull"        : false,     // true: Tolerate use of `== null`
41         "es5"           : false,     // true: Allow ES5 syntax (ex: getters and setters)
42         "esnext"        : true,      // true: Allow ES.next (ES6) syntax (ex: `const`)
43         "moz"           : false,     // true: Allow Mozilla specific syntax (extends and overrides esnext features)
44                                      // (ex: `for each`, multiple try/catch, function expression…)
45         "evil"          : false,     // true: Tolerate use of `eval` and `new Function()`
46         "expr"          : false,     // true: Tolerate `ExpressionStatement` as Programs
47         "funcscope"     : false,     // true: Tolerate defining variables inside control statements
48         "globalstrict"  : false,     // true: Allow global "use strict" (also enables 'strict')
49         "iterator"      : false,     // true: Tolerate using the `__iterator__` property
50         "lastsemic"     : false,     // true: Tolerate omitting a semicolon for the last statement of a 1-line block
51         "laxbreak"      : false,     // true: Tolerate possibly unsafe line breakings
52         "laxcomma"      : false,     // true: Tolerate comma-first style coding
53         "loopfunc"      : false,     // true: Tolerate functions being defined in loops
54         "multistr"      : false,     // true: Tolerate multi-line strings
55         "noyield"       : false,     // true: Tolerate generator functions with no yield statement in them.
56         "notypeof"      : false,     // true: Tolerate invalid typeof operator values
57         "proto"         : false,     // true: Tolerate using the `__proto__` property
58         "scripturl"     : false,     // true: Tolerate script-targeted URLs
59         "shadow"        : false,     // true: Allows re-define variables later in code e.g. `var x=1; x=2;`
60         "sub"           : true,      // true: Tolerate using `[]` notation when it can still be expressed in dot notation
61         "supernew"      : false,     // true: Tolerate `new function () { ... };` and `new Object;`
62         "validthis"     : false,     // true: Tolerate using this in a non-constructor function
63
64         // Environments
65         "browser"       : true,     // Web Browser (window, document, etc)
66         "browserify"    : true,     // Browserify (node.js code in the browser)
67         "couch"         : false,    // CouchDB
68         "devel"         : true,     // Development/debugging (alert, confirm, etc)
69         "dojo"          : false,    // Dojo Toolkit
70         "jasmine"       : false,    // Jasmine
71         "jquery"        : false,    // jQuery
72         "mocha"         : false,    // Mocha
73         "mootools"      : false,    // MooTools
74         "node"          : true,     // Node.js
75         "nonstandard"   : false,    // Widely adopted globals (escape, unescape, etc)
76         "prototypejs"   : false,    // Prototype and Scriptaculous
77         "qunit"         : false,    // QUnit
78         "rhino"         : false,    // Rhino
79         "shelljs"       : false,    // ShellJS
80         "worker"        : false,    // Web Workers
81         "wsh"           : false,    // Windows Scripting Host
82         "yui"           : false,    // Yahoo User Interface
83
84         // Custom Globals
85         "globals"       : { // additional predefined global variables
86                 "WebSocket": true
87         }        
88 }