Fix the remaning linter warnings (#353)

Refactor the code base to remove all of the remaining warnings from
ESLint and convert them into errors.
This commit is contained in:
Hornwitser authored and GitHub committed 2021-01-05 22:28:08 +01:00
1 parent 9243731646
commit 1b901f5d1c
33 files changed
+718 -609

No files matched your search

+5 -2
View File
@@ -351,8 +351,11 @@ describe("lib/config/classes", function() {
assert.deepEqual(testInstance.get("json"), { json: true });
let errMsg;
try { JSON.parse("blah"); }
catch (err) { errMsg = err.message; }
try {
JSON.parse("blah");
} catch (err) {
errMsg = err.message;
}
assert.throws(
() => testInstance.set("json", "blah"),
new classes.InvalidValue(`Error parsing value for json: ${errMsg}`)