Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
pkerpedjiev committed May 17, 2020
1 parent 67d4411 commit 1f68c65
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
}
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"singleQuote": true
"singleQuote": true,
"trailingComma": "es5",
}
4 changes: 3 additions & 1 deletion src/Arcs1DTrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1f68c65

Please sign in to comment.