chore: Enable ESLint rule consistent-type-exports (#18973)

This commit is contained in:
Suguru Inoue
2025-08-29 19:02:49 +02:00
committed by GitHub
parent 5ea4be474e
commit d64a94753f
25 changed files with 64 additions and 61 deletions

View File

@@ -1,3 +1,3 @@
export * from './ai-workflow-builder-agent.service';
export * from './types';
export type * from './types';
export * from './workflow-state';

View File

@@ -1,10 +1,10 @@
// Re-export all types from their respective modules
export * from './workflow';
export * from './messages';
export * from './tools';
export * from './connections';
export * from './streaming';
export * from './nodes';
export * from './config';
export * from './utils';
export type * from './workflow';
export type * from './messages';
export type * from './tools';
export type * from './connections';
export type * from './streaming';
export type * from './nodes';
export type * from './config';
export type * from './utils';

View File

@@ -1,10 +1,11 @@
export * from './license-state';
export * from './types';
export type * from './types';
export { inDevelopment, inProduction, inTest } from './environment';
export { isObjectLiteral } from './utils/is-object-literal';
export { Logger } from './logging/logger';
export { ModuleRegistry } from './modules/module-registry';
export { ModulesConfig, ModuleName } from './modules/modules.config';
export type { ModuleName } from './modules/modules.config';
export { ModulesConfig } from './modules/modules.config';
export { isContainedWithin, safeJoinPath } from './utils/path-util';
export { CliParser } from './cli-parser';

View File

@@ -1,3 +1,5 @@
export { ClientOAuth2, ClientOAuth2Options, ClientOAuth2RequestObject } from './client-oauth2';
export { ClientOAuth2Token, ClientOAuth2TokenData } from './client-oauth2-token';
export type { ClientOAuth2Options, ClientOAuth2RequestObject } from './client-oauth2';
export { ClientOAuth2 } from './client-oauth2';
export type { ClientOAuth2TokenData } from './client-oauth2-token';
export { ClientOAuth2Token } from './client-oauth2-token';
export type * from './types';

View File

@@ -39,7 +39,8 @@ import { Config, Env, Nested } from './decorators';
export { Config, Env, Nested } from './decorators';
export { DatabaseConfig, SqliteConfig } from './configs/database.config';
export { InstanceSettingsConfig } from './configs/instance-settings-config';
export { TaskRunnersConfig, TaskRunnerMode } from './configs/runners.config';
export type { TaskRunnerMode } from './configs/runners.config';
export { TaskRunnersConfig } from './configs/runners.config';
export { SecurityConfig } from './configs/security.config';
export { ExecutionsConfig } from './configs/executions.config';
export { LOG_SCOPES } from './configs/logging.config';

View File

@@ -9,4 +9,5 @@ export * from './pubsub';
export { Redactable } from './redactable';
export * from './shutdown';
export * from './module/module-metadata';
export { Timed, TimedOptions } from './timed';
export type { TimedOptions } from './timed';
export { Timed } from './timed';

View File

@@ -1,8 +1,3 @@
export {
ModuleInterface,
BackendModule,
EntityClass,
ModuleSettings,
ModuleContext,
} from './module';
export type { ModuleInterface, EntityClass, ModuleSettings, ModuleContext } from './module';
export { BackendModule } from './module';
export { ModuleMetadata } from './module-metadata';

View File

@@ -1,2 +1,3 @@
export { PubSubMetadata, PubSubEventName } from './pubsub-metadata';
export type { PubSubEventName } from './pubsub-metadata';
export { PubSubMetadata } from './pubsub-metadata';
export { OnPubSubEvent } from './on-pubsub-event';

View File

@@ -1,2 +1,2 @@
export { ApplicationError } from './application.error';
export * from './types';
export type * from './types';

View File

@@ -161,6 +161,8 @@ export const baseConfig = tseslint.config(
*/
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/consistent-type-exports': 'error',
/**
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/member-delimiter-style.md
*/

View File

@@ -1,2 +1,2 @@
export * from './define';
export * from './types';
export type * from './types';

View File

@@ -1,2 +1,2 @@
export * from './define';
export * from './types';
export type * from './types';

View File

@@ -97,4 +97,4 @@ export function getParts(
export * from './imap-simple';
export * from './errors';
export * from './types';
export type * from './types';

View File

@@ -1,4 +1,4 @@
export * from './task-runner';
export * from './runner-types';
export * from './message-types';
export type * from './message-types';
export * from './data-request/data-request-response-reconstruct';

View File

@@ -1,2 +1,2 @@
export { EventMessageTypes } from './event-message-classes';
export { EventPayloadWorkflow } from './event-message-classes/event-message-workflow';
export type { EventMessageTypes } from './event-message-classes';
export type { EventPayloadWorkflow } from './event-message-classes/event-message-workflow';

View File

@@ -1,5 +1,5 @@
export * from './binary-data.service';
export { BinaryDataConfig } from './binary-data.config';
export * from './types';
export type * from './types';
export { ObjectStoreService } from './object-store/object-store.service.ee';
export { isStoredMode as isValidNonDefaultMode } from './utils';

View File

@@ -13,7 +13,7 @@ declare module 'n8n-workflow' {
}
export * from './active-workflows';
export * from './interfaces';
export type * from './interfaces';
export * from './routing-node';
export * from './node-execution-context';
export * from './partial-execution-utils';

View File

@@ -13,6 +13,6 @@ export * from './nodes-loader';
export * from './utils';
export { WorkflowHasIssuesError } from './errors/workflow-has-issues.error';
export * from './interfaces';
export type * from './interfaces';
export * from './node-execute-functions';
export { NodeExecuteFunctions };

View File

@@ -1,5 +1,5 @@
export * from './chat';
export * from './messages';
export * from './options';
export * from './webhook';
export * from './streaming';
export type * from './chat';
export type * from './messages';
export type * from './options';
export type * from './webhook';
export type * from './streaming';

View File

@@ -1,19 +1,19 @@
export * from './action-dropdown';
export type * from './action-dropdown';
export * from './assistant';
export * from './badge';
export * from './button';
export * from './callout';
export * from './datatable';
export * from './form';
export * from './i18n';
export * from './icon';
export * from './input';
export * from './keyboardshortcut';
export type * from './badge';
export type * from './button';
export type * from './callout';
export type * from './datatable';
export type * from './form';
export type * from './i18n';
export type * from './icon';
export type * from './input';
export type * from './keyboardshortcut';
export * from './menu';
export * from './node-creator-node';
export * from './recycle-scroller';
export type * from './node-creator-node';
export type * from './recycle-scroller';
export * from './resize';
export * from './select';
export * from './tabs';
export * from './text';
export * from './user';
export type * from './select';
export type * from './tabs';
export type * from './text';
export type * from './user';

View File

@@ -11,7 +11,7 @@ import {
insertOptionsAndValues,
} from './utils';
export * from './types';
export type * from './types';
export const i18nInstance = createI18n({
legacy: false,

View File

@@ -14,11 +14,11 @@ export * from './roles';
export * from './settings';
export * from './module-settings';
export * from './sso';
export * from './tags';
export type * from './tags';
export * from './templates';
export * from './ui';
export * from './users';
export * from './versions';
export * from './webhooks';
export * from './workflowHistory';
export * from './workflows';
export type * from './workflows';

View File

@@ -1,3 +1,3 @@
export * from './api';
export * from './types';
export type * from './types';
export * from './utils';

View File

@@ -1,3 +1,3 @@
export * from './canvas';
export * from './externalHooks';
export * from './pushConnection';
export type * from './externalHooks';
export type * from './pushConnection';

View File

@@ -1,3 +1,3 @@
export * from './Build';
export * from './Create';
export * from './Interfaces';
export type * from './Interfaces';