22 // JSHint Default Configuration File (as on JSHint website)
33 // See http://jshint.com/docs/ for more details
44
5- "maxerr" : 50 , // {int} Maximum error before stopping
5+ "maxerr" : 50 , // {int} Maximum error before stopping
66
77 // Enforcing
8- "bitwise" : true , // true: Prohibit bitwise operators (&, |, ^, etc.)
9- "camelcase" : true , // 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- "forin" : true , // true: Require filtering for..in loops with obj.hasOwnProperty()
13- "freeze" : true , // true: prohibits overwriting prototypes of native objects such as Array, Date etc.
14- "immed" : false , // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
15- "latedef" : false , // true: Require variables/functions to be defined before being used
16- "newcap" : false , // 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" : false , // true: Prohibit use of constructors for side-effects (without assignment)
21- "plusplus" : false , // true: Prohibit use of `++` and `--`
22- "quotmark" : true , // 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" : true , // Unused variables:
29- // true : all variables, last function parameter
30- // "vars" : all variables only
31- // "strict" : all variables, all function parameters
32- "strict" : true , // true: Requires all functions run in ES5 Strict Mode
33- "maxparams" : false , // {int} Max number of formal params allowed per function
34- "maxdepth" : false , // {int} Max depth of nested blocks (within functions)
35- "maxstatements" : false , // {int} Max number statements per function
36- "maxcomplexity" : false , // {int} Max cyclomatic complexity per function
37- "maxlen" : false , // {int} Max number of characters per line
38- "varstmt" : false , // true: Disallow any var statements. Only `let` and `const` are allowed.
8+ "bitwise" : true , // true: Prohibit bitwise operators (&, |, ^, etc.)
9+ "camelcase" : true , // 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+ "forin" : true , // true: Require filtering for..in loops with obj.hasOwnProperty()
13+ "freeze" : true , // true: prohibits overwriting prototypes of native objects such as Array, Date etc.
14+ "immed" : false , // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
15+ "latedef" : false , // true: Require variables/functions to be defined before being used
16+ "newcap" : false , // 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" : false , // true: Prohibit use of constructors for side-effects (without assignment)
21+ "plusplus" : false , // true: Prohibit use of `++` and `--`
22+ "quotmark" : true , // 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" : true , // Unused variables:
29+ // true : all variables, last function parameter
30+ // "vars" : all variables only
31+ // "strict" : all variables, all function parameters
32+ "strict" : true , // true: Requires all functions run in ES5 Strict Mode
33+ "maxparams" : false , // {int} Max number of formal params allowed per function
34+ "maxdepth" : false , // {int} Max depth of nested blocks (within functions)
35+ "maxstatements" : false , // {int} Max number statements per function
36+ "maxcomplexity" : false , // {int} Max cyclomatic complexity per function
37+ "maxlen" : false , // {int} Max number of characters per line
38+ "varstmt" : false , // true: Disallow any var statements. Only `let` and `const` are allowed.
3939
4040 // Relaxing
41- "asi" : false , // true: Tolerate Automatic Semicolon Insertion (no semicolons)
42- "boss" : false , // true: Tolerate assignments where comparisons would be expected
43- "debug" : false , // true: Allow debugger statements e.g. browser breakpoints.
44- "eqnull" : false , // true: Tolerate use of `== null`
45- "esversion" : 6 , // {int} Specify the ECMAScript version to which the code must adhere.
46- "moz" : false , // true: Allow Mozilla specific syntax (extends and overrides esnext features)
47- // (ex: `for each`, multiple try/catch, function expression…)
48- "evil" : false , // true: Tolerate use of `eval` and `new Function()`
49- "expr" : false , // true: Tolerate `ExpressionStatement` as Programs
50- "funcscope" : false , // true: Tolerate defining variables inside control statements
51- "globalstrict" : true , // true: Allow global "use strict" (also enables 'strict')
52- "iterator" : false , // true: Tolerate using the `__iterator__` property
53- "lastsemic" : false , // true: Tolerate omitting a semicolon for the last statement of a 1-line block
54- "laxbreak" : false , // true: Tolerate possibly unsafe line breakings
55- "laxcomma" : false , // true: Tolerate comma-first style coding
56- "loopfunc" : false , // true: Tolerate functions being defined in loops
57- "multistr" : false , // true: Tolerate multi-line strings
58- "noyield" : false , // true: Tolerate generator functions with no yield statement in them.
59- "notypeof" : false , // true: Tolerate invalid typeof operator values
60- "proto" : false , // true: Tolerate using the `__proto__` property
61- "scripturl" : false , // true: Tolerate script-targeted URLs
62- "shadow" : false , // true: Allows re-define variables later in code e.g. `var x=1; x=2;`
63- "sub" : false , // true: Tolerate using `[]` notation when it can still be expressed in dot notation
64- "supernew" : false , // true: Tolerate `new function () { ... };` and `new Object;`
65- "validthis" : true , // true: Tolerate using this in a non-constructor function
41+ "asi" : false , // true: Tolerate Automatic Semicolon Insertion (no semicolons)
42+ "boss" : false , // true: Tolerate assignments where comparisons would be expected
43+ "debug" : false , // true: Allow debugger statements e.g. browser breakpoints.
44+ "eqnull" : false , // true: Tolerate use of `== null`
45+ "esversion" : 9 , // {int} Specify the ECMAScript version to which the code must adhere.
46+ "moz" : false , // true: Allow Mozilla specific syntax (extends and overrides esnext features)
47+ // (ex: `for each`, multiple try/catch, function expression…)
48+ "evil" : false , // true: Tolerate use of `eval` and `new Function()`
49+ "expr" : false , // true: Tolerate `ExpressionStatement` as Programs
50+ "funcscope" : false , // true: Tolerate defining variables inside control statements
51+ "globalstrict" : true , // true: Allow global "use strict" (also enables 'strict')
52+ "iterator" : false , // true: Tolerate using the `__iterator__` property
53+ "lastsemic" : false , // true: Tolerate omitting a semicolon for the last statement of a 1-line block
54+ "laxbreak" : false , // true: Tolerate possibly unsafe line breakings
55+ "laxcomma" : false , // true: Tolerate comma-first style coding
56+ "loopfunc" : false , // true: Tolerate functions being defined in loops
57+ "multistr" : false , // true: Tolerate multi-line strings
58+ "noyield" : false , // true: Tolerate generator functions with no yield statement in them.
59+ "notypeof" : false , // true: Tolerate invalid typeof operator values
60+ "proto" : false , // true: Tolerate using the `__proto__` property
61+ "scripturl" : false , // true: Tolerate script-targeted URLs
62+ "shadow" : false , // true: Allows re-define variables later in code e.g. `var x=1; x=2;`
63+ "sub" : false , // true: Tolerate using `[]` notation when it can still be expressed in dot notation
64+ "supernew" : false , // true: Tolerate `new function () { ... };` and `new Object;`
65+ "validthis" : true , // true: Tolerate using this in a non-constructor function
6666
6767 // Environments
68- "browser" : true , // Web Browser (window, document, etc)
69- "browserify" : false , // Browserify (node.js code in the browser)
70- "couch" : false , // CouchDB
71- "devel" : true , // Development/debugging (alert, confirm, etc)
72- "dojo" : false , // Dojo Toolkit
73- "jasmine" : false , // Jasmine
74- "jquery" : false , // jQuery
75- "mocha" : true , // Mocha
76- "mootools" : false , // MooTools
77- "node" : true , // Node.js
78- "nonstandard" : false , // Widely adopted globals (escape, unescape, etc)
79- "phantom" : false , // PhantomJS
80- "prototypejs" : false , // Prototype and Scriptaculous
81- "qunit" : false , // QUnit
82- "rhino" : false , // Rhino
83- "shelljs" : false , // ShellJS
84- "typed" : false , // Globals for typed array constructions
85- "worker" : false , // Web Workers
86- "wsh" : false , // Windows Scripting Host
87- "yui" : false , // Yahoo User Interface
68+ "browser" : true , // Web Browser (window, document, etc)
69+ "browserify" : false , // Browserify (node.js code in the browser)
70+ "couch" : false , // CouchDB
71+ "devel" : true , // Development/debugging (alert, confirm, etc)
72+ "dojo" : false , // Dojo Toolkit
73+ "jasmine" : false , // Jasmine
74+ "jquery" : false , // jQuery
75+ "mocha" : true , // Mocha
76+ "mootools" : false , // MooTools
77+ "node" : true , // Node.js
78+ "nonstandard" : false , // Widely adopted globals (escape, unescape, etc)
79+ "phantom" : false , // PhantomJS
80+ "prototypejs" : false , // Prototype and Scriptaculous
81+ "qunit" : false , // QUnit
82+ "rhino" : false , // Rhino
83+ "shelljs" : false , // ShellJS
84+ "typed" : false , // Globals for typed array constructions
85+ "worker" : false , // Web Workers
86+ "wsh" : false , // Windows Scripting Host
87+ "yui" : false , // Yahoo User Interface
8888
8989 // Custom Globals
90- "globals" : {} // additional predefined global variables
91- }
90+ "globals" : {} // additional predefined global variables
91+ }
0 commit comments