Update eslint.

This commit is contained in:
Daniel Scalzi committed 2020-05-29 22:35:45 -04:00
1 parent 00842c9dff
commit 87e5299af6
8 files changed
+210 -233

No files matched your search

+1 -1
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
+1 -1
View File
@@ -6,7 +6,7 @@ export interface VersionManifestFG3 {
type: string
mainClass: string
inheritsFrom: string
logging: {}
logging: Record<string, unknown>
arguments: {
game: string[]
}
@@ -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 {