diff --git a/src/art/vector/VectorArtJS.js b/src/art/vector/VectorArtJS.js index 918758cc80c68a43a103e5d86405eaa67d1f6b83..39468cc85b66d2f272a5ab043b5368c4e11f1723 100644 --- a/src/art/vector/VectorArtJS.js +++ b/src/art/vector/VectorArtJS.js @@ -1,3 +1,4 @@ +/* eslint-disable no-case-declarations */ /* eslint-disable no-undef */ window.VectorArt = (function () { "use strict"; @@ -627,7 +628,7 @@ window.VectorArt = (function () { case "slutty jewelry": case "uncomfortable straps": case "Western clothing": - ballsScaleFactor = (slave.scrotum / 3) * heightScaleFactor; + let ballsScaleFactor = (slave.scrotum / 3) * heightScaleFactor; artTranslationX = -271 * (ballsScaleFactor - 1); artTranslationY = -453 * (ballsScaleFactor - 1); T.artTransformBalls = `matrix(${ballsScaleFactor},0,0,${ballsScaleFactor},${artTranslationX},${artTranslationY})`; diff --git a/src/debugging/debugJS.js b/src/debugging/debugJS.js index 69c665ef71d205c5b69f315b2fd28e34e1560fd8..fdf5771c88ea20e5f28a1b3e33645ae426192275 100644 --- a/src/debugging/debugJS.js +++ b/src/debugging/debugJS.js @@ -1,3 +1,4 @@ +/* eslint-disable no-empty */ /* eslint-disable no-undef */ /* Given an object, this will return an array where for each property of the original object, we include the object @@ -18,7 +19,6 @@ window.difference = function difference(o1, o2) { var k, kDiff, diff = {}; for (k in o1) { if (!o1.hasOwnProperty(k)) { - /** FIXME: Empty block statement.eslint(no-empty) */ } else if (typeof o1[k] !== 'object' || typeof o2[k] !== 'object') { if (!(k in o2) || o1[k] !== o2[k]) { diff[k] = o2[k]; diff --git a/src/js/assignJS.js b/src/js/assignJS.js index 7f2f743a5fb6469b50f54720941c834a0dcd2b84..9da3181848dfbc01a886c0b744183d6c65365224 100644 --- a/src/js/assignJS.js +++ b/src/js/assignJS.js @@ -1,3 +1,4 @@ +/* eslint-disable no-case-declarations */ /* eslint-disable no-undef */ window.assignJob = function assignJob(slave, job) { "use strict"; @@ -488,7 +489,7 @@ window.removeJob = function removeJob(slave, assignment) { case "be your agent": case "live with your agent": slave.assignment = "rest"; - _leaderIndex = V.leaders.findIndex(function(x) { return x.ID === slave.ID; }); + const _leaderIndex = V.leaders.findIndex(function(x) { return x.ID === slave.ID; }); if (_leaderIndex !== -1) V.leaders.deleteAt(_leaderIndex);