From ab9e89e02ba5f1ffafe0de1310a56a4ea8a00903 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Mon, 4 Mar 2024 15:46:09 +0100 Subject: [PATCH] infra(typescript-eslint): consistent-type-exports --- .eslintrc.cjs | 1 + test/scripts/apidoc/signature.example.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index eb5c3e2318b..198153defc3 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -63,6 +63,7 @@ module.exports = defineConfig({ 'error', { default: 'array-simple', readonly: 'generic' }, ], + '@typescript-eslint/consistent-type-exports': 'error', '@typescript-eslint/consistent-type-imports': 'error', '@typescript-eslint/explicit-module-boundary-types': 'error', '@typescript-eslint/naming-convention': [ diff --git a/test/scripts/apidoc/signature.example.ts b/test/scripts/apidoc/signature.example.ts index af04ee90f2f..c42d2d454ce 100644 --- a/test/scripts/apidoc/signature.example.ts +++ b/test/scripts/apidoc/signature.example.ts @@ -4,7 +4,7 @@ import type { AlphaNumericChar } from '../../../src/modules/string'; import type { LiteralUnion } from '../../../src/utils/types'; // explicitly export types so they show up in the docs as decomposed types export type { NumberColorFormat, StringColorFormat } from '../../../src'; -export { AlphaNumericChar, Casing, ColorFormat, LiteralUnion }; +export type { AlphaNumericChar, Casing, ColorFormat, LiteralUnion }; /** * Parameter options type with default from signature.