|
| 1 | +{ |
| 2 | + "globals" : { "Phaser": false, "PIXI": false, "p2": false }, |
| 3 | + // Ignore Environment Globals |
| 4 | + "browser" : true, // Standard browser globals e.g. `window`, `document`. |
| 5 | + |
| 6 | + // Development |
| 7 | + "devel" : true, // Allow developments statements e.g. `console.log();`. |
| 8 | + |
| 9 | + // ECMAScript Support |
| 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'). |
| 14 | + |
| 15 | + // Functionality |
| 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" : false, // 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. |
| 39 | + |
| 40 | + // Styling |
| 41 | + "indent" : false, // 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. |
| 49 | +} |
0 commit comments