Skip to content

Commit

Permalink
Fix linting warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
eablack committed Aug 27, 2024
1 parent 6ee8e66 commit 626ae06
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/commands/buildpacks/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/buildpacks/set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/keys/index.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/keys/remove.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/orgs/open.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default class OrgsOpen extends Command {
}

public async run(): Promise<void> {
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<Heroku.Team>(`/teams/${team}`)
await OrgsOpen.openUrl(`https://dashboard.heroku.com/teams/${org.name}`)
Expand Down
1 change: 0 additions & 1 deletion packages/cli/src/commands/ps/scale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Expand Down
2 changes: 0 additions & 2 deletions packages/cli/src/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export function exists(f: string): Promise<boolean> {
}

export async function stat(file: string): Promise<FS.Stats> {
// debug('stat', file)
return deps.fs.stat(file)
}

Expand Down Expand Up @@ -41,7 +40,6 @@ export async function removeEmptyDirs(dir: string): Promise<void> {
}

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)
Expand Down

0 comments on commit 626ae06

Please sign in to comment.