From 6077dbeafe6ddea3218d46ec5707a840633b33d9 Mon Sep 17 00:00:00 2001
From: DCoded <dsoloha@live.com>
Date: Fri, 17 May 2019 13:26:51 -0400
Subject: [PATCH] JSdoc fixes, linting

---
 src/art/vector/VectorArtJS.js | 4 ++--
 src/js/DefaultRules.js        | 4 ++--
 src/js/slaveGenerationJS.js   | 4 ++--
 src/js/storyJS.js             | 6 ++----
 4 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/src/art/vector/VectorArtJS.js b/src/art/vector/VectorArtJS.js
index 3da76328829..5295d7e1072 100644
--- a/src/art/vector/VectorArtJS.js
+++ b/src/art/vector/VectorArtJS.js
@@ -1,4 +1,4 @@
-window.VectorArt = (function() {
+window.VectorArt = (function () {
 	"use strict";
 	let V, T, slave;
 	let r;
@@ -2679,7 +2679,7 @@ window.VectorArt = (function() {
 	return VectorArt;
 })();
 
-window.LegacyVectorArt = function(slave, artSize) {
+window.LegacyVectorArt = function (slave, artSize) {
 	const filePath = "'resources/vector";
 	const skinFilePath = `${filePath}/body/white`;
 	const wearingLatex = slave.clothes === "a Fuckdoll suit" || slave.clothes === "restrictive latex" || slave.clothes === "a latex catsuit";
diff --git a/src/js/DefaultRules.js b/src/js/DefaultRules.js
index 90ed3d4ce5e..c94323529c1 100644
--- a/src/js/DefaultRules.js
+++ b/src/js/DefaultRules.js
@@ -1,6 +1,6 @@
 // this code applies RA rules onto slaves
 
-window.DefaultRules = (function() {
+window.DefaultRules = (function () {
 	"use strict";
 	let V;
 	let r;
@@ -1353,7 +1353,7 @@ window.DefaultRules = (function() {
 				}
 			}
 			if (_priorities.length > 1) {
-				_priorities = _priorities.sort(function(a, b) {
+				_priorities = _priorities.sort(function (a, b) {
 					if (a.weight > b.weight) {
 						return -1;
 					}
diff --git a/src/js/slaveGenerationJS.js b/src/js/slaveGenerationJS.js
index bf7c53c9052..5bb707929cb 100644
--- a/src/js/slaveGenerationJS.js
+++ b/src/js/slaveGenerationJS.js
@@ -43,11 +43,11 @@ window.generateName = function generateName(nationality, race, male, filter = _.
 };
 
 /**
- * FIXME: JSdoc syntax error
  * @param {string | number} nationality
  * @param {any} race
  * @param {any} male
- * @param {() => true} [filter]  Default: allow all
+ * @param {Function} [filter]  Default: allow all
+ * @returns {string}
  */
 window.generateSurname = function generateSurname(nationality, race, male, filter = _.stubTrue) {
 	const result = jsEither(
diff --git a/src/js/storyJS.js b/src/js/storyJS.js
index a3a96dd5115..a58bc99bbe5 100644
--- a/src/js/storyJS.js
+++ b/src/js/storyJS.js
@@ -140,9 +140,8 @@ window.canImpreg = function (slave1, slave2) {
 };
 
 /**
- * FIXME: JSdoc syntax error
  * Determines whether PC is fertile
- * @param {{ preg: number; pregWeek: number; vagina: number; }} PC
+ * @param {object} PC
  * @returns {boolean}
  */
 window.isPlayerFertile = function (PC) {
@@ -598,8 +597,7 @@ window.SoftenSexualFlaw = function SoftenSexualFlaw(slave) {
 };
 
 /**
- * FIXME: JSdoc syntax error
- * @param {{ title: number; pronoun: string; possessivePronoun: string; possessive: string; object: string; objectReflexive: string; noun: string; }} PC
+ * @param {object} PC
  */
 window.generatePlayerPronouns = function (PC) {
 	if (PC.title === 0) {
-- 
GitLab