Skip to content

Commit 678c7af

Browse files
committed
1 parent 48f9c12 commit 678c7af

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

v2-community/.jshintrc

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"globals" : { "Phaser": false, "PIXI": false, "p2": false, "CocoonJS": false, "process": false, "JSON": false },
3+
4+
// Ignore Environment Globals
5+
"browser" : true, // Standard browser globals e.g. `window`, `document`.
6+
7+
// Development
8+
"devel" : true, // Allow developments statements e.g. `console.log();`.
9+
10+
// ECMAScript Support
11+
"es3" : true, // Support legacy browser and javascript environments.
12+
"esnext" : false, // This option tells JSHint that your code uses ECMAScript 6 specific syntax.
13+
"strict" : false, // Require `use strict` pragma in every file.
14+
"globalstrict": false, // Allow global "use strict" (also enables 'strict').
15+
16+
// Functionality
17+
"bitwise" : false, // Prohibit bitwise operators (&, |, ^, etc.).
18+
"boss" : true, // Tolerate assignments inside if, for & while. Usually conditions & loops are for comparison, not assignments.
19+
"camelcase" : true, // Force all variable names to use either camelCase style or UPPER_CASE with underscores.
20+
"curly" : true, // Require {} for every new block or scope.
21+
"eqeqeq" : true, // Require triple equals i.e. `===`.
22+
"eqnull" : true, // Tolerate use of `== null`.
23+
"evil" : false, // Tolerate use of `eval`.
24+
"expr" : false, // Tolerate `ExpressionStatement` as Programs.
25+
"forin" : false, // Tolerate `for in` loops without `hasOwnPrototype`.
26+
"freeze" : true, // Prohibits overwriting prototypes of native objects such as Array and Date.
27+
"funcscope" : true, // This option suppresses warnings about declaring variables inside of control structures while accessing them later from the outside.
28+
"immed" : true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`
29+
"latedef" : true, // Prohibit variable use before definition.
30+
"laxbreak" : false, // Tolerate unsafe line breaks e.g. `return [\n] x` without semicolons.
31+
"laxcomma" : false, // This option suppresses warnings about comma-first coding style.
32+
"loopfunc" : true, // Allow functions to be defined within loops.
33+
"noarg" : true, // Prohibit use of `arguments.caller` and `arguments.callee`.
34+
"notypeof" : false, // This option suppresses warnings about invalid typeof operator values.
35+
"shadow" : true, // Allows re-define variables later in code e.g. `var x=1; x=2;`.
36+
"smarttabs" : false, // This option suppresses warnings about mixed tabs and spaces when the latter are used for alignmnent only.
37+
"supernew" : false, // Tolerate `new function () { ... };` and `new Object;`.
38+
"undef" : true, // Require all non-global variables be declared before they are used.
39+
"unused" : true, // This option warns when you define and never use your variables.
40+
41+
// Styling
42+
"indent" : 4, // Specify indentation spacing
43+
"newcap" : true, // Require capitalization of all constructor functions e.g. `new F()`.
44+
"noempty" : true, // Prohibit use of empty blocks.
45+
"nonew" : true, // Prohibit use of constructors for side-effects.
46+
"plusplus" : false, // Prohibit use of `++` & `--`.
47+
"quotmark" : false, // This option enforces the consistency of quotation marks used throughout your code.
48+
"sub" : true, // Tolerate all forms of subscript notation besides dot notation e.g. `dict['key']` instead of `dict.key`.
49+
"trailing" : true // Prohibit trailing whitespaces.
50+
}

0 commit comments

Comments
 (0)