diff --git a/.eslintrc b/.eslintrc index ee59538..54565bc 100644 --- a/.eslintrc +++ b/.eslintrc @@ -15,15 +15,17 @@ "plugins": [], "rules": { "class-methods-use-this": 0, + "comma-dangle": 0, "no-bitwise": 0, "no-plusplus": 0, "no-restricted-syntax": 0, - "no-mixed-operators": ["error", { "allowSamePrecedence": true }], + "no-mixed-operators": 0, "no-multi-spaces": ["error", { "ignoreEOLComments": true }], "no-param-reassign": ["error", { "props": false }], "no-underscore-dangle": 0, "no-unused-vars": 0, "no-continue": 0, + "operator-linebreak": 0, "function-paren-newline": ["error", "consistent"] } } diff --git a/.prettierrc b/.prettierrc index 544138b..a2ee55f 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,3 +1,4 @@ { - "singleQuote": true + "singleQuote": true, + "trailingComma": "es5", } diff --git a/src/Arcs1DTrack.js b/src/Arcs1DTrack.js index a764f38..2d8c36e 100644 --- a/src/Arcs1DTrack.js +++ b/src/Arcs1DTrack.js @@ -39,8 +39,10 @@ const Arcs1DTrack = (HGC, ...args) => { // tile.graphics.beginFill(0xff0000); let polyStr = ''; - if (storePolyStr) + if (storePolyStr) { polyStr += `M${x1},${this.position[1] + this.dimensions[1]}`; + } + graphics.moveTo(x1, this.position[1] + this.dimensions[1]); const limitX1 = Math.max(0, x1);