Chore: housekeeping: lint
This commit is contained in:
parent
2cbd709d71
commit
663b194247
334 changed files with 4675 additions and 1730 deletions
|
@ -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 {
|
||||
|
|
|
@ -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'")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue