Add more eslint rules.

This commit is contained in:
kovacsv 2021-07-12 18:41:38 +02:00
parent 14833e40a9
commit fec23eb236
2 changed files with 6 additions and 3 deletions

View File

@ -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",

View File

@ -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;