diff --git a/src/endWeek/saWorkAGloryHole.js b/src/endWeek/saWorkAGloryHole.js index 0ac6216ffe613ab414e515eec7356570a27706c4..2c0d00d18ddb6e86224b0e30e21c187a7492fb8d 100644 --- a/src/endWeek/saWorkAGloryHole.js +++ b/src/endWeek/saWorkAGloryHole.js @@ -5,9 +5,17 @@ window.saWorkAGloryHole = (function saWorkAGloryHole() { let r; let beauty; let FResult; + /* eslint-disable */ let pronouns; - // eslint-disable-next-line no-unused-vars - let he, him, his, hers, himself, boy, He, His; + let he; + let him; + let his; + let hers; + let himself; + let boy; + let He; + let His; + /* eslint-enable */ return saWorkAGloryHole; diff --git a/src/js/SlaveState.js b/src/js/SlaveState.js index e5ff99a7a6d2a2104a3e436b7eed3b3547649e5d..64f7ba2fc4a479f3aefbc903248c08a50e535306 100644 --- a/src/js/SlaveState.js +++ b/src/js/SlaveState.js @@ -1,4 +1,3 @@ -/* eslint-disable no-undef */ /** * Encapsulates the full description of a slave state. Serializable by the SugarCube state * management. diff --git a/src/js/assignJS.js b/src/js/assignJS.js index 19afaee3dd5d47fd154e5fe981ddf75ad729b784..bde11e0e4650b2211d52f3d82831dab821e1487d 100644 --- a/src/js/assignJS.js +++ b/src/js/assignJS.js @@ -1,5 +1,4 @@ /* eslint-disable no-case-declarations */ -/* eslint-disable no-undef */ window.assignJob = function assignJob(slave, job) { "use strict"; const V = State.variables; diff --git a/src/js/colorModeJS.js b/src/js/colorModeJS.js index 04ef3f44f8e4be3a4762567eecf6bb5cfb9f76ce..bc6d8d7630af8ec4ae6847b68196c30d4bdd031d 100644 --- a/src/js/colorModeJS.js +++ b/src/js/colorModeJS.js @@ -1,4 +1,3 @@ -/* eslint-disable no-undef */ window.flipColors = function (lightColorMap) { if (!window.savedColorMap) { window.savedColorMap = setColors(lightColorMap); diff --git a/src/js/datatypeCleanupJS.js b/src/js/datatypeCleanupJS.js index 2f9d258472c6b94fc5bc341ece4fa45bca310e02..7939296f091c8faefaa65bb19d317f84d053750b 100644 --- a/src/js/datatypeCleanupJS.js +++ b/src/js/datatypeCleanupJS.js @@ -12,7 +12,7 @@ App.Entity.Utils.SlaveDataSchemeCleanup = (function () { /** * @param {App.Entity.SlaveState} slave */ - function SlaveDataSchemeCleanup(slave) { // eslint-disable-line no-unused-vars + function SlaveDataSchemeCleanup(slave) { migratePorn(slave); migrateSkills(slave); migrateCounters(slave); diff --git a/src/js/eventSelectionJS.js b/src/js/eventSelectionJS.js index a57180131d36bc9d76e2a0405daa79bbfd21e5e7..7b0cb81cea47d195fe7332b2387347f4cc34f528 100644 --- a/src/js/eventSelectionJS.js +++ b/src/js/eventSelectionJS.js @@ -1,4 +1,3 @@ -/* eslint-disable no-undef */ window.generateRandomEventPoolStandard = function (eventSlave) { /* STANDARD EVENTS */ diff --git a/src/js/extendedFamilyModeJS.js b/src/js/extendedFamilyModeJS.js index a42ba83b21fac8cd4cc22b13e9493c944de66ed8..a8ec7251849885ec0d2a3e5f22fd5e3fdaccdcb9 100644 --- a/src/js/extendedFamilyModeJS.js +++ b/src/js/extendedFamilyModeJS.js @@ -1,4 +1,3 @@ -/* eslint-disable no-undef */ /* see documentation for details /devNotes/Extended Family Mode Explained.txt */ window.isMotherP = function isMotherP(daughter, mother) { diff --git a/src/js/familyTreeJS.js b/src/js/familyTreeJS.js index 53e8e2c2347d3cb7a9d90fb96cb8bf99acb681b3..7ee477b6e8ea7365a33a2d7546d69062dd8ca2a4 100644 --- a/src/js/familyTreeJS.js +++ b/src/js/familyTreeJS.js @@ -1,7 +1,5 @@ /* eslint-disable camelcase */ /* eslint-disable no-console */ -/* eslint-disable no-unused-vars */ -/* eslint-disable no-undef */ let lastActiveSlave, lastSlaves, lastPC; /* @@ -89,6 +87,7 @@ window.renderFamilyTree = function (slaves, filterID) { .force('link', d3.forceLink().id(function (d) { return d.index; })) + // eslint-disable-next-line no-unused-vars .force('collide', d3.forceCollide(function (d) { return 60; }).iterations(4)) diff --git a/src/js/foreachMacroJS.js b/src/js/foreachMacroJS.js index 12a48d5924698816ec93d960920f3f26a5d5e9d6..d670f6f911cf4f9c2d9e57077be124ed37dd2873 100644 --- a/src/js/foreachMacroJS.js +++ b/src/js/foreachMacroJS.js @@ -1,4 +1,3 @@ -/* eslint-disable no-undef */ Macro.add('foreach', { skipArgs: true, tags: null, diff --git a/src/js/futureSocietyJS.js b/src/js/futureSocietyJS.js index 725dd107f8da9490c78dc6536de4dc69b79590d8..dda6f5db26375914ae63dd5c9fb0a431bc007ad2 100644 --- a/src/js/futureSocietyJS.js +++ b/src/js/futureSocietyJS.js @@ -1,5 +1,3 @@ -/* eslint-disable no-console */ -/* eslint-disable no-undef */ window.FutureSocieties = (function () { return { remove: removeFS, @@ -15,6 +13,7 @@ window.FutureSocieties = (function () { const FSSMR = `${FS }SMR`; let FSLaw = `${FS }Law`; if (arcology[FS] === undefined) { + // eslint-disable-next-line no-console console.log(`ERROR: bad FS reference, $arcologies[0].${FS} not defined`); return; } diff --git a/src/js/generateNewSlaveJS.js b/src/js/generateNewSlaveJS.js index 8b584c36c61c75f7bdb21e2755ac83f7c981245a..e2a509559e99c5dda736ce7ebf1790f9c48b9510 100644 --- a/src/js/generateNewSlaveJS.js +++ b/src/js/generateNewSlaveJS.js @@ -1,5 +1,4 @@ /* eslint-disable camelcase */ -/* eslint-disable no-undef */ window.GenerateNewSlave = (function () { "use strict"; let V; diff --git a/src/js/hTagMacroJS.js b/src/js/hTagMacroJS.js index e9524190a19a7136732986cbec3c84cd272e6330..be89c63fff6baddf9def7050ddf7f381a4a9d392 100644 --- a/src/js/hTagMacroJS.js +++ b/src/js/hTagMacroJS.js @@ -1,4 +1,3 @@ -/* eslint-disable no-undef */ /* * <<htag>> macro * A simple macro which allows to create wrapping html elements with dynamic IDs. diff --git a/src/js/heroCreator.js b/src/js/heroCreator.js index 51fc8409a74ea4bb6ec8e3854dfac567913cb6b3..3b19f98cf7d2de0e7086ef349b499ed3b245cd8c 100644 --- a/src/js/heroCreator.js +++ b/src/js/heroCreator.js @@ -1,4 +1,3 @@ -/* eslint-disable no-undef */ /** * @param {App.Entity.SlaveState} heroSlave * @param {App.Entity.SlaveState} baseHeroSlave diff --git a/src/js/itemAvailability.js b/src/js/itemAvailability.js index 71ae1cef19118d8946f23009344b9a4a287b19e7..4c473f9baf2e6f8ade34a47fdefeaddc9c5051ac 100644 --- a/src/js/itemAvailability.js +++ b/src/js/itemAvailability.js @@ -1,4 +1,3 @@ -/* eslint-disable no-undef */ /* intended to condense the clothing/toy/etc availability checks into something less asinine */ /** diff --git a/src/js/optionsMacro.js b/src/js/optionsMacro.js index 09ec5eb97bf1396247ea4935178a19d2a95b98f1..aef2c03c14ffd734582361ef27f40dd461db3b19 100644 --- a/src/js/optionsMacro.js +++ b/src/js/optionsMacro.js @@ -1,7 +1,5 @@ /* eslint-disable camelcase */ /* eslint-disable no-empty */ -/* eslint-disable no-console */ -/* eslint-disable no-undef */ /* Use like: <<options $varname "New Passage (defaults to current passage)">> A title @@ -49,6 +47,7 @@ Macro.add('options', { } else if (this.payload[0].args.full.startsWith("State.variables.")) { variable = "$" + this.payload[0].args.full.split(' ', 1)[0].substring("State.variables.".length); } else { + // eslint-disable-next-line no-console console.log(this.payload[0].args.full); throw new Error("First parameter to 'options' must be a variable"); } diff --git a/src/js/quickListJS.js b/src/js/quickListJS.js index b86d3e8a4d554a194bd75ec68b867ae52b808b2d..ac0241f18e7addc978aac93dda122000ddc75cb9 100644 --- a/src/js/quickListJS.js +++ b/src/js/quickListJS.js @@ -1,4 +1,3 @@ -/* eslint-disable no-undef */ window.sortDomObjects = function (objects, attrName, reverse = 0) { reverse = (reverse) ? -1 : 1; diff --git a/src/js/rbuttonJS.js b/src/js/rbuttonJS.js index bca16fc0a8fccbcb9787518dbb487f7df524a2e5..ca15f2f02b4fffd756cb23be452a381a67b538c5 100644 --- a/src/js/rbuttonJS.js +++ b/src/js/rbuttonJS.js @@ -1,4 +1,3 @@ -/* eslint-disable no-undef */ /* This is modified radiobutton macro, for automatic checked state setup*/ /* Usage (be sure to use quotes around parameters): diff --git a/src/js/rulesAssistantOptions.js b/src/js/rulesAssistantOptions.js index fc1dc11c3a79f606942e67d19b852b88faf6b6e2..f60c6958020e64396956054b84dd5ef715d2112f 100644 --- a/src/js/rulesAssistantOptions.js +++ b/src/js/rulesAssistantOptions.js @@ -1,6 +1,5 @@ /* eslint-disable camelcase */ /* eslint-disable no-unused-vars */ -/* eslint-disable no-undef */ // rewrite of the rules assistant options page in javascript // uses an object-oriented widget pattern // wrapped in a closure so as not to pollute the global namespace diff --git a/src/js/slaveCostJS.js b/src/js/slaveCostJS.js index 4c2041f25ecf71df4a16edcdcad8fc7a35283ae8..483607e358d68d45d00a63921c01dc180edb97d0 100644 --- a/src/js/slaveCostJS.js +++ b/src/js/slaveCostJS.js @@ -1,4 +1,3 @@ -/* eslint-disable no-undef */ window.Beauty = (function () { "use strict"; let V; diff --git a/src/js/slaveStatsChecker.js b/src/js/slaveStatsChecker.js index ee37f04a7ff1d75624593d15ff22491cb1d2becd..e1f66d5766b175f4ca404e84e21ad6ad86174a90 100644 --- a/src/js/slaveStatsChecker.js +++ b/src/js/slaveStatsChecker.js @@ -1,4 +1,3 @@ -/* eslint-disable no-undef */ window.SlaveStatsChecker = (function () { return { checkForLisp: hasLisp, diff --git a/src/js/spanMacroJS.js b/src/js/spanMacroJS.js index a5e6f59aece1ccd5db49b01ff605e4f0cd1bfe8e..f2d0fffce3000afacd8976724b4ad60380651993 100644 --- a/src/js/spanMacroJS.js +++ b/src/js/spanMacroJS.js @@ -1,4 +1,3 @@ -/* eslint-disable no-undef */ /* * <<span>> macro * A minimal macro which allows to create <span> elements with dynamic IDs. diff --git a/src/js/summaryWidgets.js b/src/js/summaryWidgets.js index 0f67a230aad70e21456b6b89a8b416e3db3e2380..c0dc4cf8e091aaeee22ffdeee7c00d9cbec7c34e 100644 --- a/src/js/summaryWidgets.js +++ b/src/js/summaryWidgets.js @@ -1,11 +1,8 @@ -/* eslint-disable no-undef */ -/* eslint-disable no-unused-vars */ /** * @param {App.Entity.SlaveState} slave */ window.SlaveStatClamp = function SlaveStatClamp(slave) { slave.energy = Math.clamp(slave.energy, 0, 100); - const V = State.variables; if (slave.devotion > 100) { if (slave.trust < -95) { diff --git a/src/js/textInput.js b/src/js/textInput.js index a7371b2983e0f4841ab2b31245e1b8ffb04b6ac8..ba89308e4e948ac2988088f88b358830d6795b08 100644 --- a/src/js/textInput.js +++ b/src/js/textInput.js @@ -1,4 +1,3 @@ -/* eslint-disable no-undef */ Macro.add("textinput", { // Signifies that the macro is a container macro. tags: null, diff --git a/src/js/textboxJS.js b/src/js/textboxJS.js index cb5213593f77e0f4021a7174b771459b7c0be3c0..76ddd8b9b8f9386466f6fc6b6c43e106692e4984 100644 --- a/src/js/textboxJS.js +++ b/src/js/textboxJS.js @@ -1,4 +1,3 @@ -/* eslint-disable no-undef */ /* Nicked off greyelf, works for replace textboxes */ window.setReplaceTextboxMaxLength = function (storyVarName, maxLength) { const textboxId = `#textbox-${ Util.slugify(storyVarName)}`; diff --git a/src/js/utilJS.js b/src/js/utilJS.js index 117017cc92fb35f3fb94cd535707be3ab450ee41..5d0e97b0dfff5c9abe8f4235969776ca9aabc3d6 100644 --- a/src/js/utilJS.js +++ b/src/js/utilJS.js @@ -1,6 +1,4 @@ /* eslint-disable no-unused-vars */ -/* eslint-disable no-console */ -/* eslint-disable no-undef */ /* * Height.mean(nationality, race, genes, age) - returns the mean height for the given combination and age in years (>=2) * Height.mean(nationality, race, genes) - returns the mean adult height for the given combination @@ -649,9 +647,11 @@ window.Height = (function () { case "Y0": case "YY": case "YYY": + // eslint-disable-next-line no-console console.log(`Height.mean(): non-viable genes ${ genes}`); break; default: + // eslint-disable-next-line no-console console.log(`Height.mean(): unknown genes ${ genes }, returning mean between XX and XY`); result = nationalityMeanHeight(xxMeanHeight, nationality, race) * 0.5 + nationalityMeanHeight(xyMeanHeight, nationality, race) * 0.5; break; diff --git a/src/js/vignettes.js b/src/js/vignettes.js index 62a07b544f884f82732d22c3da48fbb5f1ac8265..602652eb7052e4dbaf908cf168ab2efd2e6fe336 100644 --- a/src/js/vignettes.js +++ b/src/js/vignettes.js @@ -1,4 +1,3 @@ -/* eslint-disable no-undef */ /** * @param {App.Entity.SlaveState} slave * @returns {string} diff --git a/src/js/walkPastJS.js b/src/js/walkPastJS.js index a5d389ec66e7e42607d3acf7714e31e5fb234dfd..54e126c2f748fabde4f80860c6b4c85208d658cd 100644 --- a/src/js/walkPastJS.js +++ b/src/js/walkPastJS.js @@ -1,5 +1,4 @@ /* eslint-disable no-unused-vars */ -/* eslint-disable no-undef */ /* temporary container until the entire thing is complete. No point in not deploying the working functions, you know? */ window.primeSlave = function (activeSlave, seed) { diff --git a/src/js/wombJS.js b/src/js/wombJS.js index 305455e035bcb1c7d42d201419751941ecbf788b..7c8920080fb48bed3f1e97061db608b3a0417af5 100644 --- a/src/js/wombJS.js +++ b/src/js/wombJS.js @@ -1,4 +1,3 @@ -/* eslint-disable no-undef */ /* This is a womb processor/simulator script. It takes care of calculation of belly sizes based on individual fetus sizes, with full support of broodmothers implant random turning on and off possibility. Also this can be expanded to store more parents data in each individual fetus in future. Design limitations: