Skip to content

Commit 345fe62

Browse files
authored
Sort exports using eslint-plugin-sort-export-all (#823)
1 parent ba07d33 commit 345fe62

File tree

8 files changed

+24
-10
lines changed

8 files changed

+24
-10
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"extends": [
66
"eslint:recommended",
77
"plugin:import/recommended",
8+
"plugin:sort-export-all/recommended",
89
"plugin:@typescript-eslint/recommended"
910
],
1011
"rules": {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"aws-sdk": "2.1563.0",
5353
"eslint": "^8.57.0",
5454
"eslint-plugin-import": "^2.29.1",
55+
"eslint-plugin-sort-export-all": "^1.4.1",
5556
"lint-staged": "^15.2.2",
5657
"prettier": "3.2.5",
5758
"simple-git-hooks": "^2.11.0",

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
export * from "./addEmptyObjectForUndefined";
2-
export * from "./addNotSupportedComments";
32
export * from "./addNotSupportedClientComments";
3+
export * from "./addNotSupportedComments";
4+
export * from "./getClientIdentifiersRecord";
45
export * from "./getClientWaiterStates";
5-
export * from "./getV3ClientWaiterApiName";
6+
export * from "./getCommandName";
67
export * from "./getS3SignedUrlApiNames";
8+
export * from "./getV3ClientWaiterApiName";
79
export * from "./isS3GetSignedUrlApiUsed";
810
export * from "./isS3UploadApiUsed";
911
export * from "./removePromiseCalls";
10-
export * from "./replaceAwsIdentity";
12+
export * from "./renameErrorCodeWithName";
1113
export * from "./replaceAwsError";
14+
export * from "./replaceAwsIdentity";
1215
export * from "./replaceS3GetSignedUrlApi";
1316
export * from "./replaceS3UploadApi";
1417
export * from "./replaceWaiterApi";
15-
export * from "./getCommandName";
16-
export * from "./getClientIdentifiersRecord";
17-
export * from "./renameErrorCodeWithName";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export * from "./getClientMetadataRecord";
2+
export * from "./getClientNamesFromDeepImport";
23
export * from "./getClientNamesFromGlobal";
34
export * from "./getClientNamesRecord";
4-
export * from "./getClientNamesFromDeepImport";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export * from "./addNamedModule";
2-
export * from "./getImportSpecifiers";
32
export * from "./getImportEqualsDeclarations";
3+
export * from "./getImportSpecifiers";
44
export * from "./removeImportEquals";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export * from "./addNamedModule";
2-
export * from "./getImportSpecifiers";
32
export * from "./getImportDeclarations";
3+
export * from "./getImportSpecifiers";
44
export * from "./removeImport";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
export * from "./getClientDeepImportPath";
22
export * from "./getClientNewExpression";
33
export * from "./getFormattedSourceString";
4-
export * from "./getMostUsedStringLiteralQuote";
54
export * from "./getMostUsedIndentationType";
5+
export * from "./getMostUsedStringLiteralQuote";
66
export * from "./getValueIndentedWithTabs";
77
export * from "./isTrailingCommaUsed";
88
export * from "./isTypeScriptFile";

yarn.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1936,6 +1936,7 @@ __metadata:
19361936
aws-sdk: "npm:2.1563.0"
19371937
eslint: "npm:^8.57.0"
19381938
eslint-plugin-import: "npm:^2.29.1"
1939+
eslint-plugin-sort-export-all: "npm:^1.4.1"
19391940
jscodeshift: "npm:0.15.2"
19401941
lint-staged: "npm:^15.2.2"
19411942
prettier: "npm:3.2.5"
@@ -2977,6 +2978,17 @@ __metadata:
29772978
languageName: node
29782979
linkType: hard
29792980

2981+
"eslint-plugin-sort-export-all@npm:^1.4.1":
2982+
version: 1.4.1
2983+
resolution: "eslint-plugin-sort-export-all@npm:1.4.1"
2984+
dependencies:
2985+
natural-compare: "npm:^1.4.0"
2986+
peerDependencies:
2987+
eslint: ^4 || ^5 || ^6 || ^7 || ^8
2988+
checksum: 10c0/da105c7625fffd08a36bd5d7e4c79ee69d0011232125b55aec2d48396e82ef8cc906bb4582b9b07159877f185ce6452470df12e44cb450977219ff8fd3008feb
2989+
languageName: node
2990+
linkType: hard
2991+
29802992
"eslint-scope@npm:^7.2.2":
29812993
version: 7.2.2
29822994
resolution: "eslint-scope@npm:7.2.2"

0 commit comments

Comments
 (0)