Fix linting issues with new rules

This commit is contained in:
Danielv123 committed 2025-08-01 22:26:25 +00:00
1 parent 256407b9fd
commit 7e2f10e842
32 files changed
+65 -66

No files matched your search

+4 -4
View File
@@ -816,24 +816,24 @@ describe("lib/ModStore", function () {
assert.equal(
typeof firstMod.latest_release.version,
"string",
"latest_release version should be string" // eslint-disable-line max-len
"latest_release version should be string"
);
assert.equal(
typeof firstMod.latest_release.sha1,
"string",
"latest_release should have a sha1 string" // eslint-disable-line max-len
"latest_release should have a sha1 string"
);
assert.ok(firstMod.latest_release.info_json, "latest_release should have info_json");
assert.equal(
typeof firstMod.latest_release.info_json.factorio_version,
"string",
"info_json should have factorio_version string" // eslint-disable-line max-len
"info_json should have factorio_version string"
);
// Check for an expected field from the user example
assert.equal(
typeof firstMod.downloads_count,
"number",
"First mod should have downloads_count number" // eslint-disable-line max-len
"First mod should have downloads_count number"
);
} else {
// This should not happen for v1.1 but handles edge cases
+1 -2
View File
@@ -303,7 +303,7 @@ describe("lib/data/ModPack", function() {
Buffer.from(str),
];
}
/* eslint-disable indent */
/* eslint-disable @stylistic/indent */
assert.deepEqual(
pack.toModSettingsDat(),
Buffer.concat([
@@ -373,7 +373,6 @@ describe("lib/data/ModPack", function() {
new Uint8Array(Float64Array.from([1]).buffer),
])
);
/* eslint-enable indent */
});
});
describe("defaultModPacks", function() {
+1 -1
View File
@@ -46,7 +46,7 @@ describe("lib/plugin_loader", function() {
it("should reject on broken plugin", async function() {
let brokenMessage;
try {
// eslint-disable-next-line node/global-require
require(path.resolve(brokenPlugin));
} catch (err) {
brokenMessage = err.message;