Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
koji committed Mar 5, 2024
1 parent cb1537f commit 3bf03d6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 17 deletions.
7 changes: 2 additions & 5 deletions react-api-client/src/calibration/useCalibrationStatusQuery.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import {
HostConfig,
CalibrationStatus,
getCalibrationStatus,
} from '@opentrons/api-client'
import { getCalibrationStatus } from '@opentrons/api-client'
import { useQuery } from 'react-query'
import { useHost } from '../api'

import type { UseQueryOptions, UseQueryResult } from 'react-query'
import type { CalibrationStatus, HostConfig } from '@opentrons/api-client'

export function useCalibrationStatusQuery(
options: UseQueryOptions<
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import {
UseMutationResult,
UseMutationOptions,
useMutation,
UseMutateFunction,
useQueryClient,
} from 'react-query'
import { useMutation, useQueryClient } from 'react-query'

import { updateDeckConfiguration } from '@opentrons/api-client'

import { useHost } from '../api'

import type { AxiosError } from 'axios'
import type {
UseMutationResult,
UseMutationOptions,
UseMutateFunction,
} from 'react-query'
import type { ErrorResponse, HostConfig } from '@opentrons/api-client'
import type { DeckConfiguration } from '@opentrons/shared-data'

Expand Down
8 changes: 4 additions & 4 deletions react-api-client/src/health/useHealth.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { HostConfig, getHealth } from '@opentrons/api-client'
import { UseQueryResult, useQuery } from 'react-query'
import { getHealth } from '@opentrons/api-client'
import { useQuery } from 'react-query'
import { useHost } from '../api'

import type { UseQueryOptions } from 'react-query'
import type { UseQueryOptions, UseQueryResult } from 'react-query'
import type { AxiosResponse, AxiosError } from 'axios'
import type { Health } from '@opentrons/api-client'
import type { Health, HostConfig } from '@opentrons/api-client'

export function useHealthQuery(
options: UseQueryOptions<AxiosResponse<Health>, AxiosError> = {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react'
import { describe, it, expect, beforeEach, vi } from 'vitest'
import { QueryClient, QueryClientProvider } from 'react-query'
import { act, renderHook, waitFor } from '@testing-library/react'
import { createRunAction, RUN_ACTION_TYPE_STOP } from '@opentrons/api-client'
import { createRunAction } from '@opentrons/api-client'
import { useHost } from '../../api'
import { useStopRunMutation } from '..'

Expand Down

0 comments on commit 3bf03d6

Please sign in to comment.