aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2024-03-05 06:10:07 +0100
committerGitHub <[email protected]>2024-03-05 05:10:07 +0000
commit2bf897464cdda53886380590d64236658102cdda (patch)
tree41930dfec76128fc85694cf6fd2b5cb0dc64addd
parentf7471a225f388c6bc0ec47ebad759ee1051e1106 (diff)
downloadfaker-2bf897464cdda53886380590d64236658102cdda.tar.xz
faker-2bf897464cdda53886380590d64236658102cdda.zip
infra(typescript-eslint): consistent-type-exports (#2714)
-rw-r--r--.eslintrc.cjs1
-rw-r--r--test/scripts/apidoc/signature.example.ts2
2 files changed, 2 insertions, 1 deletions
diff --git a/.eslintrc.cjs b/.eslintrc.cjs
index eb5c3e23..198153de 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 af04ee90..c42d2d45 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.