|
1 | 1 | { |
2 | | - "globals" : { "Phaser": false, "PIXI": false, "p2": false }, |
| 2 | + "globals" : { "Phaser": false, "PIXI": false, "p2": false }, |
3 | 3 | // Ignore Environment Globals |
4 | | - "browser" : true, // Standard browser globals e.g. `window`, `document`. |
5 | | - "couch" : false, |
6 | | - "dojo" : false, |
7 | | - "jquery" : true, |
8 | | - "mootools" : false, |
9 | | - "node" : false, |
10 | | - "nonstandard" : false, |
11 | | - "phantom" : false, |
12 | | - "prototypejs" : false, |
13 | | - "rhino" : false, |
14 | | - "worker" : false, |
15 | | - "wsh" : true, // Windows Scripting Host. |
16 | | - "yui" : false, |
| 4 | + "browser" : true, // Standard browser globals e.g. `window`, `document`. |
17 | 5 |
|
18 | 6 | // Development |
19 | | - "debug" : true, // Allow debugger statements e.g. browser breakpoints. |
20 | | - "devel" : true, // Allow developments statements e.g. `console.log();`. |
| 7 | + "devel" : true, // Allow developments statements e.g. `console.log();`. |
21 | 8 |
|
22 | 9 | // ECMAScript Support |
23 | | - "es3" : true, // Support legacy browser and javascript environments. |
24 | | - "esnext" : false, // This option tells JSHint that your code uses ECMAScript 6 specific syntax. |
25 | | - "strict" : false, // Require `use strict` pragma in every file. |
26 | | - "globalstrict" : false, // Allow global "use strict" (also enables 'strict'). |
| 10 | + "es3" : true, // Support legacy browser and javascript environments. |
| 11 | + "esnext" : false, // This option tells JSHint that your code uses ECMAScript 6 specific syntax. |
| 12 | + "strict" : false, // Require `use strict` pragma in every file. |
| 13 | + "globalstrict": false, // Allow global "use strict" (also enables 'strict'). |
27 | 14 |
|
28 | 15 | // Functionality |
29 | | - "asi" : true, // Tolerate Automatic Semicolon Insertion (no semicolons). |
30 | | - "bitwise" : false, // Prohibit bitwise operators (&, |, ^, etc.). |
31 | | - "boss" : true, // Tolerate assignments inside if, for & while. Usually conditions & loops are for comparison, not assignments. |
32 | | - "camelcase" : true, // Force all variable names to use either camelCase style or UPPER_CASE with underscores. |
33 | | - "curly" : true, // Require {} for every new block or scope. |
34 | | - "eqeqeq" : false, // Require triple equals i.e. `===`. |
35 | | - "eqnull" : true, // Tolerate use of `== null`. |
36 | | - "evil" : false, // Tolerate use of `eval`. |
37 | | - "expr" : false, // Tolerate `ExpressionStatement` as Programs. |
38 | | - "forin" : false, // Tolerate `for in` loops without `hasOwnPrototype`. |
39 | | - "freeze" : true, // Prohibits overwriting prototypes of native objects such as Array and Date. |
40 | | - "funcscope" : true, // This option suppresses warnings about declaring variables inside of control structures while accessing them later from the outside. |
41 | | - "immed" : false, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );` |
42 | | - "iterator" : true, // This option suppresses warnings about the __iterator__ property. |
43 | | - "lastsemic" : true, // This option suppresses warnings about missing semicolons, but only when the semicolon is omitted for the last statement in a one-line block. |
44 | | - "latedef" : false, // Prohipit variable use before definition. |
45 | | - "laxbreak" : false, // Tolerate unsafe line breaks e.g. `return [\n] x` without semicolons. |
46 | | - "laxcomma" : false, // This option suppresses warnings about comma-first coding style. |
47 | | - "loopfunc" : true, // Allow functions to be defined within loops. |
48 | | - // "maxcomplexity" : 10, // This option lets you control cyclomatic complexity throughout your code. |
49 | | - // "maxdepth" : 2, // This option lets you control how nested do you want your blocks to be. |
50 | | - // "maxlen" : 80, // This option lets you set the maximum length of a line. |
51 | | - // "maxparams" : 5, // This option lets you set the max number of formal parameters allowed per function. |
52 | | - // "maxstatements" : 25, // This option lets you set the max number of statements allowed per function.This option lets you set the max number of formal parameters allowed per function. |
53 | | - "moz" : false, // This options tells JSHint that your code uses Mozilla JavaScript extensions. |
54 | | - "multistr" : true, // This option suppresses warnings about multi-line strings. |
55 | | - "noarg" : true, // Prohibit use of `arguments.caller` and `arguments.callee`. |
56 | | - "notypeof" : false, // This option suppresses warnings about invalid typeof operator values. |
57 | | - "proto" : true, // This option suppresses warnings about the __proto__ property. |
58 | | - "scripturl" : true, // Tolerate script-targeted URLs. |
59 | | - "shadow" : true, // Allows re-define variables later in code e.g. `var x=1; x=2;`. |
60 | | - "smarttabs" : false, // This option suppresses warnings about mixed tabs and spaces when the latter are used for alignmnent only. |
61 | | - "supernew" : false, // Tolerate `new function () { ... };` and `new Object;`. |
62 | | - "undef" : true, // Require all non-global variables be declared before they are used. |
63 | | - "unused" : true, // This option warns when you define and never use your variables. |
64 | | - "validthis" : true, // This option suppresses warnings about possible strict violations when the code is running in strict mode and you use this in a non-constructor function. |
| 16 | + "bitwise" : false, // Prohibit bitwise operators (&, |, ^, etc.). |
| 17 | + "boss" : true, // Tolerate assignments inside if, for & while. Usually conditions & loops are for comparison, not assignments. |
| 18 | + "camelcase" : true, // Force all variable names to use either camelCase style or UPPER_CASE with underscores. |
| 19 | + "curly" : true, // Require {} for every new block or scope. |
| 20 | + "eqeqeq" : false, // Require triple equals i.e. `===`. |
| 21 | + "eqnull" : true, // Tolerate use of `== null`. |
| 22 | + "evil" : false, // Tolerate use of `eval`. |
| 23 | + "expr" : false, // Tolerate `ExpressionStatement` as Programs. |
| 24 | + "forin" : false, // Tolerate `for in` loops without `hasOwnPrototype`. |
| 25 | + "freeze" : true, // Prohibits overwriting prototypes of native objects such as Array and Date. |
| 26 | + "funcscope" : true, // This option suppresses warnings about declaring variables inside of control structures while accessing them later from the outside. |
| 27 | + "immed" : true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );` |
| 28 | + "latedef" : true, // Prohibit variable use before definition. |
| 29 | + "laxbreak" : false, // Tolerate unsafe line breaks e.g. `return [\n] x` without semicolons. |
| 30 | + "laxcomma" : false, // This option suppresses warnings about comma-first coding style. |
| 31 | + "loopfunc" : true, // Allow functions to be defined within loops. |
| 32 | + "noarg" : true, // Prohibit use of `arguments.caller` and `arguments.callee`. |
| 33 | + "notypeof" : false, // This option suppresses warnings about invalid typeof operator values. |
| 34 | + "shadow" : true, // Allows re-define variables later in code e.g. `var x=1; x=2;`. |
| 35 | + "smarttabs" : false, // This option suppresses warnings about mixed tabs and spaces when the latter are used for alignmnent only. |
| 36 | + "supernew" : false, // Tolerate `new function () { ... };` and `new Object;`. |
| 37 | + "undef" : true, // Require all non-global variables be declared before they are used. |
| 38 | + "unused" : true, // This option warns when you define and never use your variables. |
65 | 39 |
|
66 | 40 | // Styling |
67 | | - "indent" : 4, // Specify indentation spacing |
68 | | - "newcap" : true, // Require capitalization of all constructor functions e.g. `new F()`. |
69 | | - "noempty" : true, // Prohibit use of empty blocks. |
70 | | - "nonew" : true, // Prohibit use of constructors for side-effects. |
71 | | - "plusplus" : false, // Prohibit use of `++` & `--`. |
72 | | - "quotmark" : false, // This option enforces the consistency of quotation marks used throughout your code. |
73 | | - "sub" : true, // Tolerate all forms of subscript notation besides dot notation e.g. `dict['key']` instead of `dict.key`. |
74 | | - "trailing" : true // Prohibit trailing whitespaces. |
| 41 | + "indent" : 4, // Specify indentation spacing |
| 42 | + "newcap" : true, // Require capitalization of all constructor functions e.g. `new F()`. |
| 43 | + "noempty" : true, // Prohibit use of empty blocks. |
| 44 | + "nonew" : true, // Prohibit use of constructors for side-effects. |
| 45 | + "plusplus" : false, // Prohibit use of `++` & `--`. |
| 46 | + "quotmark" : false, // This option enforces the consistency of quotation marks used throughout your code. |
| 47 | + "sub" : true, // Tolerate all forms of subscript notation besides dot notation e.g. `dict['key']` instead of `dict.key`. |
| 48 | + "trailing" : true // Prohibit trailing whitespaces. |
75 | 49 | } |
0 commit comments