Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
matteodepalo committed Oct 11, 2022
1 parent 6d76bb0 commit 2defda2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ node_modules
bin
dist
*.d.ts
fixtures/
./fixtures/
6 changes: 2 additions & 4 deletions packages/cli-kit/src/public/node/ui.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import {renderConcurrent, renderError, renderFatalError, renderInfo, renderSuccess, renderWarning} from './ui.js'
import {renderError, renderFatalError, renderInfo, renderSuccess, renderWarning} from './ui.js'
import {Abort} from '../../error.js'
import * as outputMocker from '../../testing/output.js'
import {Signal} from '../../abort.js'
import {run} from '../../testing/ui.js'
import {afterEach, describe, expect, test, vi} from 'vitest'
import {Writable} from 'node:stream'
import {afterEach, describe, expect, test} from 'vitest'
import stripAnsi from 'strip-ansi'

afterEach(() => {
Expand Down
8 changes: 4 additions & 4 deletions packages/cli-kit/src/testing/fixtures/render-concurrent.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Writable } from "form-data"
import { Signal } from "../../abort.js"
import { renderConcurrent } from "@shopify/cli-kit/node/ui"
import {Signal} from '../../abort.js'
import {Writable} from 'form-data'
import {renderConcurrent} from '@shopify/cli-kit/node/ui'

let backendPromiseResolve: () => void

Expand Down Expand Up @@ -30,5 +30,5 @@ const frontendProcess = {
},
}

// eslint-disable-next-line @typescript-eslint/no-floating-promises
renderConcurrent({processes: [backendProcess, frontendProcess]})

4 changes: 2 additions & 2 deletions packages/cli-kit/src/testing/ui.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as path from '../path'
import {execa, ExecaChildProcess} from 'execa'
import {path} from '@shopify/cli-kit'

type Run = (fixture: string, props?: {env?: Record<string, any>}) => ExecaChildProcess<string>
type Run = (fixture: string, props?: {env?: {[key: string]: unknown}}) => ExecaChildProcess<string>

export const run: Run = (fixture, props) => {
const env = {
Expand Down

0 comments on commit 2defda2

Please sign in to comment.