Add more eslint rules.
This commit is contained in:
parent
14833e40a9
commit
fec23eb236
@ -15,6 +15,7 @@
|
||||
"ecmaVersion": 12
|
||||
},
|
||||
"rules": {
|
||||
"semi": "error",
|
||||
"no-var": "error",
|
||||
"guard-for-in": "error",
|
||||
"no-use-before-define": "error",
|
||||
@ -25,7 +26,9 @@
|
||||
"no-prototype-builtins": "error",
|
||||
"no-eval": "error",
|
||||
"no-useless-escape": "error",
|
||||
"prefer-arrow-callback" : "error",
|
||||
"no-multiple-empty-lines": "error",
|
||||
"comma-spacing": "error",
|
||||
"prefer-arrow-callback": "error",
|
||||
"quotes": ["error", "single"],
|
||||
"block-scoped-var": "error",
|
||||
"no-loop-func": "error",
|
||||
|
||||
@ -36,7 +36,7 @@ OV.MouseInteraction = class
|
||||
constructor ()
|
||||
{
|
||||
this.prev = new OV.Coord2D (0.0, 0.0);
|
||||
this.curr = new OV.Coord2D (0.0, 0,0);
|
||||
this.curr = new OV.Coord2D (0.0, 0.0);
|
||||
this.diff = new OV.Coord2D (0.0, 0.0);
|
||||
this.buttons = [];
|
||||
}
|
||||
@ -100,7 +100,7 @@ OV.TouchInteraction = class
|
||||
constructor ()
|
||||
{
|
||||
this.prevPos = new OV.Coord2D (0.0, 0.0);
|
||||
this.currPos = new OV.Coord2D (0.0, 0,0);
|
||||
this.currPos = new OV.Coord2D (0.0, 0.0);
|
||||
this.diffPos = new OV.Coord2D (0.0, 0.0);
|
||||
this.prevDist = 0.0;
|
||||
this.currDist = 0.0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user