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 {
@@ -3,7 +3,7 @@ import { createHash } from 'crypto'
import { copy, lstat, mkdirs, pathExists, readFile, remove } from 'fs-extra'
import { Module, Type } from 'helios-distribution-types'
import { basename, join } from 'path'
import { VersionManifestFG2 } from '../../../model/forge/versionmanifestFG2'
import { VersionManifestFG2 } from '../../../model/forge/VersionManifestFG2'
import { LibRepoStructure } from '../../../model/struct/repo/librepo.struct'
import { MavenUtil } from '../../../util/maven'
import { PackXZExtractWrapper } from '../../../util/PackXZExtractWrapper'
@@ -2,7 +2,7 @@ import { spawn } from 'child_process'
import { copy, lstat, mkdirs, move, pathExists, readFile, remove, writeFile } from 'fs-extra'
import { Module, Type } from 'helios-distribution-types'
import { basename, dirname, join } from 'path'
import { VersionManifestFG3 } from '../../../model/forge/versionmanifestFG3'
import { VersionManifestFG3 } from '../../../model/forge/VersionManifestFG3'
import { LibRepoStructure } from '../../../model/struct/repo/librepo.struct'
import { JavaUtil } from '../../../util/javautil'
import { MavenUtil } from '../../../util/maven'