From b5f621087a76050769a861003401a10b30066ebf Mon Sep 17 00:00:00 2001 From: Markus Tacker Date: Sat, 25 May 2024 01:57:16 +0200 Subject: [PATCH] style: fix eslint errors --- cdk/HostingStack.ts | 2 +- cdk/ensureGitHubOIDCProvider.ts | 2 +- src/context/DeviceState.tsx | 3 ++- src/utils/validatingFetch.ts | 3 ++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/cdk/HostingStack.ts b/cdk/HostingStack.ts index 4af2a17d2..937423172 100644 --- a/cdk/HostingStack.ts +++ b/cdk/HostingStack.ts @@ -1,5 +1,5 @@ +import type { App } from 'aws-cdk-lib' import { - App, aws_certificatemanager as CertificateManager, aws_cloudfront as Cf, aws_cloudfront_origins as CfOrigins, diff --git a/cdk/ensureGitHubOIDCProvider.ts b/cdk/ensureGitHubOIDCProvider.ts index 4d9633700..f778d2092 100644 --- a/cdk/ensureGitHubOIDCProvider.ts +++ b/cdk/ensureGitHubOIDCProvider.ts @@ -1,7 +1,7 @@ +import type { IAMClient } from '@aws-sdk/client-iam' import { CreateOpenIDConnectProviderCommand, GetOpenIDConnectProviderCommand, - IAMClient, ListOpenIDConnectProvidersCommand, } from '@aws-sdk/client-iam' import chalk from 'chalk' diff --git a/src/context/DeviceState.tsx b/src/context/DeviceState.tsx index bd653b650..757c6a66c 100644 --- a/src/context/DeviceState.tsx +++ b/src/context/DeviceState.tsx @@ -1,4 +1,5 @@ -import { Context, Shadow } from '@hello.nrfcloud.com/proto/hello' +import type { Shadow } from '@hello.nrfcloud.com/proto/hello' +import { Context } from '@hello.nrfcloud.com/proto/hello' import { type Static } from '@sinclair/typebox' import { createContext, type ComponentChildren } from 'preact' import { useContext, useEffect, useState } from 'preact/hooks' diff --git a/src/utils/validatingFetch.ts b/src/utils/validatingFetch.ts index f2e53c03a..a2de5a991 100644 --- a/src/utils/validatingFetch.ts +++ b/src/utils/validatingFetch.ts @@ -2,7 +2,8 @@ import { formatTypeBoxErrors, validateWithTypeBox, } from '@hello.nrfcloud.com/proto' -import { Context, ProblemDetail } from '@hello.nrfcloud.com/proto/hello' +import type { ProblemDetail } from '@hello.nrfcloud.com/proto/hello' +import { Context } from '@hello.nrfcloud.com/proto/hello' import { type Static, type TObject } from '@sinclair/typebox' type OkFN = (value: Static) => void