diff --git a/packages/cli/src/commands/buildpacks/add.ts b/packages/cli/src/commands/buildpacks/add.ts index 4ed0a2d5e2..0835960330 100644 --- a/packages/cli/src/commands/buildpacks/add.ts +++ b/packages/cli/src/commands/buildpacks/add.ts @@ -37,7 +37,7 @@ export default class Add extends Command { if (flags.index === undefined) { spliceIndex = buildpacks.length } else { - // eslint-disable-next-line unicorn/no-array-callback-reference, unicorn/no-array-method-this-argument + // eslint-disable-next-line unicorn/no-array-method-this-argument const foundIndex = buildpackCommand.findIndex(buildpacks, flags.index) spliceIndex = (foundIndex === -1) ? buildpacks.length : foundIndex } diff --git a/packages/cli/src/commands/buildpacks/set.ts b/packages/cli/src/commands/buildpacks/set.ts index a3bee80c7a..b4151c417f 100644 --- a/packages/cli/src/commands/buildpacks/set.ts +++ b/packages/cli/src/commands/buildpacks/set.ts @@ -38,7 +38,7 @@ export default class Set extends Command { if (flags.index === undefined) { spliceIndex = 0 } else { - // eslint-disable-next-line unicorn/no-array-callback-reference, unicorn/no-array-method-this-argument + // eslint-disable-next-line unicorn/no-array-method-this-argument const foundIndex = buildpackCommand.findIndex(buildpacks, flags.index) spliceIndex = (foundIndex === -1) ? buildpacks.length : foundIndex } diff --git a/packages/cli/src/commands/keys/index.ts b/packages/cli/src/commands/keys/index.ts index a5f9f7b64a..8d91445aa3 100644 --- a/packages/cli/src/commands/keys/index.ts +++ b/packages/cli/src/commands/keys/index.ts @@ -1,4 +1,4 @@ -import {Args, ux} from '@oclif/core' +import {ux} from '@oclif/core' import color from '@heroku-cli/color' import * as Heroku from '@heroku-cli/schema' import {flags, Command} from '@heroku-cli/command' diff --git a/packages/cli/src/commands/keys/remove.ts b/packages/cli/src/commands/keys/remove.ts index 804447db8f..7a3070dd73 100644 --- a/packages/cli/src/commands/keys/remove.ts +++ b/packages/cli/src/commands/keys/remove.ts @@ -1,7 +1,7 @@ import {Args, ux} from '@oclif/core' import color from '@heroku-cli/color' import * as Heroku from '@heroku-cli/schema' -import {flags, Command} from '@heroku-cli/command' +import {Command} from '@heroku-cli/command' export default class Remove extends Command { static description = 'remove an SSH key from the user' diff --git a/packages/cli/src/commands/orgs/open.ts b/packages/cli/src/commands/orgs/open.ts index f752ffe48a..3d39182645 100644 --- a/packages/cli/src/commands/orgs/open.ts +++ b/packages/cli/src/commands/orgs/open.ts @@ -17,7 +17,7 @@ export default class OrgsOpen extends Command { } public async run(): Promise { - const {flags, argv, args} = await this.parse(OrgsOpen) + const {flags} = await this.parse(OrgsOpen) const team = flags.team const {body: org} = await this.heroku.get(`/teams/${team}`) await OrgsOpen.openUrl(`https://dashboard.heroku.com/teams/${org.name}`) diff --git a/packages/cli/src/commands/ps/scale.ts b/packages/cli/src/commands/ps/scale.ts index 547ff0edb4..33085ba986 100644 --- a/packages/cli/src/commands/ps/scale.ts +++ b/packages/cli/src/commands/ps/scale.ts @@ -4,7 +4,6 @@ import {ux} from '@oclif/core' import * as Heroku from '@heroku-cli/schema' import {compact} from 'lodash' import heredoc from 'tsheredoc' -import {HTTPError} from 'http-call' const emptyFormationErr = (app: string) => { return new Error(`No process types on ${color.magenta(app)}.\nUpload a Procfile to add process types.\nhttps://devcenter.heroku.com/articles/procfile`) diff --git a/packages/cli/src/file.ts b/packages/cli/src/file.ts index b7af39cd2b..fbda71cd26 100644 --- a/packages/cli/src/file.ts +++ b/packages/cli/src/file.ts @@ -10,7 +10,6 @@ export function exists(f: string): Promise { } export async function stat(file: string): Promise { - // debug('stat', file) return deps.fs.stat(file) } @@ -41,7 +40,6 @@ export async function removeEmptyDirs(dir: string): Promise { } const dirs = files.filter(f => f.stat.isDirectory()).map(f => f.path) - // eslint-disable-next-line unicorn/no-array-callback-reference for (const p of dirs.map(removeEmptyDirs)) await p files = await ls(dir) if (files.length === 0) await remove(dir)