Skip to content

Commit ff4fa1f

Browse files
committed
fix(types): enforce consistent type exports in TypeScript files
1 parent 7f55dee commit ff4fa1f

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

eslint.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ const enableTypeCheckedRules = {
7575
...eslintPluginSafeTypeScript.configs.recommended.rules,
7676
"@susisu/safe-typescript/no-unsafe-object-property-check": "off",
7777
"@susisu/safe-typescript/no-unsafe-object-property-overwrite": "off",
78+
"@typescript-eslint/consistent-type-exports": "error",
7879
"@typescript-eslint/strict-boolean-expressions": ["warn", { allowNullableBoolean: true, allowNullableString: true }],
7980
} as const;
8081

packages/types/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export * from "./rule";
2-
export * from "./rule-feature";
3-
export * from "./rule-name";
4-
export * from "./rule-namespace";
1+
export type * from "./rule";
2+
export type * from "./rule-feature";
3+
export type * from "./rule-name";
4+
export type * from "./rule-namespace";
55
export * from "./utils";

packages/utilities/ast/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ export * from "./is-string-literal";
2727
export * from "./is-this-expression";
2828
export * from "./to-readable-node-name";
2929
export * from "./to-readable-node-type";
30-
export * from "./types";
30+
export type * from "./types";
3131
export * from "./unwrap-type-expression";

0 commit comments

Comments
 (0)