Skip to content

Commit 9c6fec4

Browse files
committed
chore: use natural sort order for imports
1 parent 0c57ed2 commit 9c6fec4

9 files changed

+9
-9
lines changed

scripts/generateNewClientTests/getServiceImportDeepWithNameOutput.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { CLIENTS_TO_TEST } from "./config";
2-
import { getClientNameWithLocalSuffix } from "./getClientNameWithLocalSuffix";
32
import { getClientNamesSortedByPackageName } from "./getClientNamesSortedByPackageName";
3+
import { getClientNameWithLocalSuffix } from "./getClientNameWithLocalSuffix";
44
import { getV3ClientsNewExpressionCode } from "./getV3ClientsNewExpressionCode";
55
import { getV3PackageImportsCode } from "./getV3PackageImportsCode";
66

scripts/generateNewClientTests/getServiceImportEqualsWithNameOutput.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { CLIENTS_TO_TEST } from "./config";
2-
import { getClientNameWithLocalSuffix } from "./getClientNameWithLocalSuffix";
32
import { getClientNamesSortedByPackageName } from "./getClientNamesSortedByPackageName";
3+
import { getClientNameWithLocalSuffix } from "./getClientNameWithLocalSuffix";
44
import { getV3ClientsNewExpressionCode } from "./getV3ClientsNewExpressionCode";
55
import { getV3PackageImportEqualsCode } from "./getV3PackageImportEqualsCode";
66

scripts/generateNewClientTests/getServiceImportWithNameOutput.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { CLIENTS_TO_TEST } from "./config";
2-
import { getClientNameWithLocalSuffix } from "./getClientNameWithLocalSuffix";
32
import { getClientNamesSortedByPackageName } from "./getClientNamesSortedByPackageName";
3+
import { getClientNameWithLocalSuffix } from "./getClientNameWithLocalSuffix";
44
import { getV3ClientsNewExpressionCode } from "./getV3ClientsNewExpressionCode";
55
import { getV3PackageImportsCode } from "./getV3PackageImportsCode";
66

scripts/generateNewClientTests/getServiceRequireDeepWithNameOutput.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { CLIENTS_TO_TEST } from "./config";
2-
import { getClientNameWithLocalSuffix } from "./getClientNameWithLocalSuffix";
32
import { getClientNamesSortedByPackageName } from "./getClientNamesSortedByPackageName";
3+
import { getClientNameWithLocalSuffix } from "./getClientNameWithLocalSuffix";
44
import { getV3ClientsNewExpressionCode } from "./getV3ClientsNewExpressionCode";
55
import { getV3PackageRequiresCode } from "./getV3PackageRequiresCode";
66

scripts/generateNewClientTests/getServiceRequireWithNameOutput.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { CLIENTS_TO_TEST } from "./config";
2-
import { getClientNameWithLocalSuffix } from "./getClientNameWithLocalSuffix";
32
import { getClientNamesSortedByPackageName } from "./getClientNamesSortedByPackageName";
3+
import { getClientNameWithLocalSuffix } from "./getClientNameWithLocalSuffix";
44
import { getV3ClientsNewExpressionCode } from "./getV3ClientsNewExpressionCode";
55
import { getV3PackageRequiresCode } from "./getV3PackageRequiresCode";
66

src/transforms/v2-to-v3/apis/renameErrorCodeWithName.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type {
2-
ASTPath,
32
ArrowFunctionExpression,
3+
ASTPath,
44
CallExpression,
55
Collection,
66
FunctionExpression,

src/transforms/v2-to-v3/apis/replaceAwsError.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Collection, JSCodeshift } from "jscodeshift";
2-
import { type ImportType, addNamedModule } from "../modules";
2+
import { addNamedModule, type ImportType } from "../modules";
33

44
export interface ReplaceAwsErrorOptions {
55
v2GlobalName?: string;

src/transforms/v2-to-v3/apis/replaceAwsIdentity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Collection, JSCodeshift, NewExpression } from "jscodeshift";
22
import { AWS_CREDENTIALS_MAP, AWS_TOKEN_MAP } from "../config";
3-
import { type ImportType, addNamedModule } from "../modules";
3+
import { addNamedModule, type ImportType } from "../modules";
44

55
export interface ReplaceAwsCredentialsOptions {
66
v2GlobalName?: string;

src/transforms/v2-to-v3/transformer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ import {
3737
} from "./modules";
3838
import { removeTypesFromTSQualifiedName, replaceTSTypeReference } from "./ts-type";
3939
import {
40-
IndentationType,
4140
getFormattedSourceString,
4241
getMostUsedIndentationType,
4342
getMostUsedStringLiteralQuote,
4443
getValueIndentedWithTabs,
44+
IndentationType,
4545
isTrailingCommaUsed,
4646
isTypeScriptFile,
4747
} from "./utils";

0 commit comments

Comments
 (0)