Chore: housekeeping: lint

This commit is contained in:
Pieter Vander Vennet 2023-12-19 22:08:00 +01:00
parent 2cbd709d71
commit 663b194247
334 changed files with 4675 additions and 1730 deletions

View file

@ -147,11 +147,12 @@ export class ExtractImages extends Conversion<
.warn("Found an emtpy image")
} else if (typeof img.leaf !== "string") {
const c = context.enter(img.path)
const msg = "found an image path that is not a string: " +
const msg =
"found an image path that is not a string: " +
JSON.stringify(img.leaf)
if(this._isOfficial) {
if (this._isOfficial) {
c.err(msg)
}else {
} else {
c.warn(msg)
}
} else {

View file

@ -1454,10 +1454,10 @@ export class ValidateLayer extends Conversion<
for (let i = 0; i < layerConfig.titleIcons.length; i++) {
const titleIcon = layerConfig.titleIcons[i]
if (<any> titleIcon.render === "icons.defaults") {
if (<any>titleIcon.render === "icons.defaults") {
context.enters("titleIcons", i).err("Detected a literal 'icons.defaults'")
}
if (<any> titleIcon.render === "icons.rating") {
if (<any>titleIcon.render === "icons.rating") {
context.enters("titleIcons", i).err("Detected a literal 'icons.rating'")
}
}