Skip to content

Commit c9396dc

Browse files
committed
chore(packages): enforce consistent-type-imports
1 parent 383fdc2 commit c9396dc

File tree

87 files changed

+172
-132
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+172
-132
lines changed

.changeset/polite-socks-kneel.md

Lines changed: 10 additions & 0 deletions

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@ module.exports = {
3434

3535
/** Errors */
3636
"simple-import-sort/imports": "error",
37+
"@typescript-eslint/consistent-type-imports": "error",
3738
},
3839
};

packages/core/src/getSmithyContext.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { HandlerExecutionContext, SMITHY_CONTEXT_KEY } from "@smithy/types";
1+
import type { HandlerExecutionContext } from "@smithy/types";
2+
import { SMITHY_CONTEXT_KEY } from "@smithy/types";
23

34
/**
45
* @internal

packages/core/src/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {
1+
import type {
22
HandlerExecutionContext,
33
HttpAuthSchemeParameters,
44
HttpAuthSchemeParametersProvider,
@@ -8,7 +8,8 @@ import {
88
SerializeHandlerOptions,
99
} from "@smithy/types";
1010

11-
import { httpAuthSchemeMiddleware, PreviouslyResolved } from "./httpAuthSchemeMiddleware";
11+
import type { PreviouslyResolved } from "./httpAuthSchemeMiddleware";
12+
import { httpAuthSchemeMiddleware } from "./httpAuthSchemeMiddleware";
1213

1314
/**
1415
* @internal

packages/core/src/middleware-http-auth-scheme/getHttpAuthSchemePlugin.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { serializerMiddlewareOption } from "@smithy/middleware-serde";
2-
import {
2+
import type {
33
HandlerExecutionContext,
44
HttpAuthSchemeParameters,
55
HttpAuthSchemeParametersProvider,
@@ -9,7 +9,8 @@ import {
99
SerializeHandlerOptions,
1010
} from "@smithy/types";
1111

12-
import { httpAuthSchemeMiddleware, PreviouslyResolved } from "./httpAuthSchemeMiddleware";
12+
import type { PreviouslyResolved } from "./httpAuthSchemeMiddleware";
13+
import { httpAuthSchemeMiddleware } from "./httpAuthSchemeMiddleware";
1314

1415
/**
1516
* @internal

packages/core/src/middleware-http-auth-scheme/httpAuthSchemeMiddleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {
1+
import type {
22
HandlerExecutionContext,
33
HttpAuthScheme,
44
HttpAuthSchemeId,

packages/core/src/middleware-http-auth-scheme/resolveAuthOptions.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { HttpAuthOption } from "@smithy/types";
1+
import type { HttpAuthOption } from "@smithy/types";
22
import { describe, expect, it } from "vitest";
33

44
import { resolveAuthOptions } from "./resolveAuthOptions";

packages/core/src/middleware-http-auth-scheme/resolveAuthOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { HttpAuthOption } from "@smithy/types";
1+
import type { HttpAuthOption } from "@smithy/types";
22

33
/**
44
* Resolves list of auth options based on the supported ones, vs the preference list.

packages/core/src/middleware-http-signing/getHttpSigningMiddleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FinalizeRequestHandlerOptions, Pluggable, RelativeMiddlewareOptions } from "@smithy/types";
1+
import type { FinalizeRequestHandlerOptions, Pluggable, RelativeMiddlewareOptions } from "@smithy/types";
22

33
import { httpSigningMiddleware } from "./httpSigningMiddleware";
44

packages/core/src/middleware-http-signing/httpSigningMiddleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable @typescript-eslint/no-unused-vars */
22
import { HttpRequest } from "@smithy/protocol-http";
3-
import {
3+
import type {
44
ErrorHandler,
55
FinalizeHandler,
66
FinalizeHandlerArguments,

0 commit comments

Comments
 (0)