diff --git a/src/art/vector_revamp/vectorRevampedArtControl.js b/src/art/vector_revamp/vectorRevampedArtControl.js index 381e46520e2eca963e2a7454ea43ffc96da8b3b5..7e1f419ffc7738643f55f1af0db7ad24b7a657ed 100644 --- a/src/art/vector_revamp/vectorRevampedArtControl.js +++ b/src/art/vector_revamp/vectorRevampedArtControl.js @@ -452,7 +452,7 @@ class ClothingControl { get restrictiveLatex() { var defaultOutfitColor = "#515351"; - var areolaColor = "#383838"; /** FIXME: 'areolaColor' is declared but its value is never read.ts(6133) */ + var areolaColor = "#383838"; return { bodySettings: { showEyes: false, @@ -874,8 +874,8 @@ class RevampedArtControl { get armLayer() { var result = []; - var leftArmType = ""; /** FIXME: 'leftArmType' is declared but its value is never read.ts(6133) */ - var rightArmType = ""; /** FIXME: 'rightArmType' is declared but its value is never read.ts(6133) */ + var leftArmType = ""; + var rightArmType = ""; if (this.artSlave.amp === 1) { result.push("Art_Vector_Revamp_Arm_Stump"); diff --git a/src/endWeek/saChoosesOwnClothes.js b/src/endWeek/saChoosesOwnClothes.js index 78451c250e5f0cb8b51174fad58f1740bac840e1..39cdbd92e97badfdd6d767e88e8007b4322918f7 100644 --- a/src/endWeek/saChoosesOwnClothes.js +++ b/src/endWeek/saChoosesOwnClothes.js @@ -1,3 +1,4 @@ +/* eslint-disable no-empty */ /* eslint-disable no-undef */ /* eslint-disable no-unused-vars */ window.saChoosesOwnClothes = (function() { @@ -989,9 +990,7 @@ window.saChoosesOwnClothes = (function() { let neck = []; if(slave.fetish === 'mindbroken') { - /** FIXME: Empty block statement.eslint(no-empty) */ } else if(slave.devotion <= 20) { - /** FIXME: Empty block statement.eslint(no-empty) */ } else { if(V.arcologies[0].FSEgyptianRevivalist > 0) { neck.push({text: `dons a wesekh to support your ancient Egyptian pretensions,`, collar: "ancient Egyptian"}); diff --git a/src/endWeek/saServant.js b/src/endWeek/saServant.js index a1dbca384f12e997e9f1ae611062b7fd84892079..e58b06959ed64569e1f8c67e1142404148e72c71 100644 --- a/src/endWeek/saServant.js +++ b/src/endWeek/saServant.js @@ -3,7 +3,7 @@ window.saServant = /** @param {App.Entity.SlaveState} slave */ function saServant(slave) { var pronouns = getPronouns(slave); - var he = pronouns.pronoun, him = pronouns.object, his = pronouns.possessive, hers = pronouns.possessivePronoun, himself = pronouns.objectReflexive, boy = pronouns.noun; /** FIXME: 'hers', 'himself', 'boy' is declared but its value is never read.ts(6133) */ + var he = pronouns.pronoun, him = pronouns.object, his = pronouns.possessive, hers = pronouns.possessivePronoun, himself = pronouns.objectReflexive, boy = pronouns.noun; var He = capFirstChar(he), His = capFirstChar(his); var V = State.variables; diff --git a/src/js/familyTreeJS.js b/src/js/familyTreeJS.js index 4f78035bb341eb070519ed791c6fb0a2984f26ba..767265dd7932d88188f1a02a0c618add486e8c39 100644 --- a/src/js/familyTreeJS.js +++ b/src/js/familyTreeJS.js @@ -592,7 +592,7 @@ window.updateFamilyTree = function(activeSlave = lastActiveSlave, slaves = lastS } var marriage = { "spouse": {"name": spouseName, "class": spouse.genes}, - "children": children.map(function (x) { return slaveInfo_(x, activeSlaveId, slavesAdded, depth + 1);} ), /** FIXME: Functions declared within loops referencing an outer scoped variable may lead to confusing semantics. (slaveInfo_, activeSlaveId, slavesAdded, depth) (W083)jshint(W083) */ + "children": children.map(function (x) { return slaveInfo_(x, activeSlaveId, slavesAdded, depth + 1);} ), }; data.marriages.push(marriage); } diff --git a/src/js/rulesAssistantOptions.js b/src/js/rulesAssistantOptions.js index 99875f7b1e636f9776f978beb8278ce316421160..c8f40b383cb822fd93e27450cf73af04dae81f59 100644 --- a/src/js/rulesAssistantOptions.js +++ b/src/js/rulesAssistantOptions.js @@ -213,7 +213,7 @@ window.rulesAssistantOptions = (function() { this.value.innerHTML = ""+what; } - getData(what) { /** FIXME: 'what' is declared but its value is never read.ts(6133) */ + getData(what) { return (this.value.tagName === "INPUT" ? this.parse(this.value.value): this.selectedItem.data); } @@ -301,7 +301,7 @@ window.rulesAssistantOptions = (function() { this.label = label; this.onclick = onclick; } - render(label, onclick) { /** FIXME: 'onclick' is declared but its value is never read.ts(6133) */ + render(label, onclick) { const elem = document.createElement("span"); elem.classList.add("rajs-listitem"); elem.innerHTML = label; @@ -671,7 +671,7 @@ window.rulesAssistantOptions = (function() { min.setAttribute("type", "text"); min.value = "" + data.value[0]; min.onkeypress = e => { if (returnP(e)) this.setmin(min.value); }; - min.onblur = e => this.setmin(min.value); /** FIXME: 'e' is declared but its value is never read.ts(6133) */ + min.onblur = e => this.setmin(min.value); this.min = min; elem.appendChild(min); @@ -685,7 +685,7 @@ window.rulesAssistantOptions = (function() { max.setAttribute("type", "text"); max.value = "" + data.value[1]; max.onkeypress = e => { if (returnP(e)) this.setmax(max.value); }; - max.onblur = e => this.setmax(max.value); /** FIXME: 'e' is declared but its value is never read.ts(6133) */ + max.onblur = e => this.setmax(max.value); this.max = max; elem.appendChild(max); @@ -744,7 +744,7 @@ window.rulesAssistantOptions = (function() { input.setAttribute("type", "text"); input.value = JSON.stringify(data.value); input.onkeypress = e => { if (returnP(e)) this.setValue(input); }; - input.onblur = e => this.setValue(input); /** FIXME: 'e' is declared but its value is never read.ts(6133) */ + input.onblur = e => this.setValue(input); this.input = input; elem.appendChild(input); diff --git a/src/js/slaveSummaryWidgets.js b/src/js/slaveSummaryWidgets.js index f98ea10c74c3ad2c7b893294b4ab8dff36c04d99..e0f8a37ff0b567dfaf608da4f366677c9bcaab76 100644 --- a/src/js/slaveSummaryWidgets.js +++ b/src/js/slaveSummaryWidgets.js @@ -4885,7 +4885,7 @@ App.UI.slaveSummaryList = function (passageName) { if ("object" === typeof attributes) attributes = $.map(attributes, (val, key) => key + '="' + val + '"').join(" "); else - attributes = 'id="' + String(this.args[0]).trim() + '"'; /** FIXME: If a strict mode function is executed using function invocation, its 'this' value will be undefined. jshint(W040) */ + attributes = 'id="' + String(this.args[0]).trim() + '"'; return '<' + htag + ' ' + attributes + '>' + payload + '</' + htag + '>'; } @@ -5012,7 +5012,7 @@ App.UI.slaveSummaryList = function (passageName) { const _slaveName = SlaveFullName(_Slave); - let _tableCount = 0; /** FIXME: '_tableCount' is declared but its value is never read.ts(6133) */ + let _tableCount = 0; let slaveImagePrinted = (V.seeImages === 1) && (V.seeSummaryImages === 1); res.push('<div id="slave_' + _Slave.ID + '" style="clear:both">'); @@ -5021,7 +5021,7 @@ App.UI.slaveSummaryList = function (passageName) { case "Main": if ((_Slave.choosesOwnClothes === 1) && (_Slave.clothes === "choosing her own clothes")) { const _oldDevotion = _Slave.devotion; - const _chosenClothes = saChoosesOwnClothes(_Slave); /** FIXME: '_chosenClothes' is declared but its value is never read.ts(6133) */ + const _chosenClothes = saChoosesOwnClothes(_Slave); slaves[_ssi].devotion = _oldDevotion; _Slave = slaves[_ssi]; /* restore devotion value so repeatedly changing clothes isn't an exploit */ } @@ -5030,7 +5030,7 @@ App.UI.slaveSummaryList = function (passageName) { else if ("recruit girls" === _Slave.assignment) res.push('<strong>@@.lightcoral;RC@@</strong> '); else if ("guard you" === _Slave.assignment) res.push('<strong>@@.lightcoral;BG@@</strong> '); - if (Array.isArray(V.personalAttention) && V.personalAttention.findIndex(s => s.ID === _Slave.ID) !== -1) /** FIXME: Functions declared within loops referencing an outer scoped variable may lead to confusing semantics. (_Slave) jshint(W083) */ + if (Array.isArray(V.personalAttention) && V.personalAttention.findIndex(s => s.ID === _Slave.ID) !== -1) { res.push('<strong>@@.lightcoral; PA@@</strong> '); }