Update eslint.

This commit is contained in:
Daniel Scalzi
2020-05-29 22:35:45 -04:00
parent 00842c9dff
commit 87e5299af6
8 changed files with 210 additions and 233 deletions

View File

@@ -8,7 +8,7 @@ export interface VersionManifestFG2 {
mainClass: string
inheritsFrom: string
jar: string
logging: {}
logging: Record<string, unknown>
libraries: Array<{
name: string
url?: string

View File

@@ -6,7 +6,7 @@ export interface VersionManifestFG3 {
type: string
mainClass: string
inheritsFrom: string
logging: {}
logging: Record<string, unknown>
arguments: {
game: string[]
}

View File

@@ -79,7 +79,7 @@ export class ForgeModStructure17 extends BaseForgeModStructure {
if (raw) {
// Assuming the main mod will be the first entry in this file.
try {
const resolved = JSON.parse(raw) as object
const resolved = JSON.parse(raw) as (McModInfoList | McModInfo[])
if (Object.prototype.hasOwnProperty.call(resolved, 'modListVersion')) {
this.forgeModMetadata[name] = (resolved as McModInfoList).modList[0]
} else {