Skip to content

Commit 6da0ab3

Browse files
authored
chore: apply eslint rule for import paths (#1755)
1 parent 56a65e6 commit 6da0ab3

File tree

4 files changed

+26
-1
lines changed

4 files changed

+26
-1
lines changed

.changeset/chilled-pets-hammer.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@smithy/types": patch
3+
"@smithy/core": patch
4+
---
5+
6+
export used types

.eslintrc.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,22 @@ module.exports = {
3636
"simple-import-sort/imports": "error",
3737
"@typescript-eslint/consistent-type-imports": "error",
3838
},
39+
overrides: [
40+
{
41+
files: ["packages/*/src/**/*.ts"],
42+
excludedFiles: ["packages/*/src/**/*.spec.ts"],
43+
rules: {
44+
"no-restricted-imports": [
45+
"error",
46+
{
47+
patterns: [
48+
{
49+
group: ["*src*", "*dist-*"],
50+
},
51+
],
52+
},
53+
],
54+
}
55+
},
56+
],
3957
};

packages/core/src/submodules/schema/schemas/NormalizedSchema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import type {
3030
TimestampEpochSecondsSchema,
3131
UnitSchema,
3232
} from "@smithy/types";
33-
import type { IdempotencyTokenBitMask, TraitBitVector } from "@smithy/types/src/schema/traits";
33+
import type { IdempotencyTokenBitMask, TraitBitVector } from "@smithy/types";
3434

3535
import { deref } from "../deref";
3636
import { translateTraits } from "./translateTraits";

packages/types/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export * from "./profile";
2222
export * from "./response";
2323
export * from "./retry";
2424
export * from "./schema/schema";
25+
export * from "./schema/traits";
2526
export * from "./schema/schema-deprecated";
2627
export * from "./schema/sentinels";
2728
export * from "./schema/static-schemas";

0 commit comments

Comments
 (0)