From 89d1d0d2f6a938b7211b04da39617e5846317a30 Mon Sep 17 00:00:00 2001 From: Dominic Griesel Date: Tue, 12 Nov 2024 14:44:36 +0100 Subject: [PATCH] fix: lint --- packages/cc/src/index_browser.ts | 3 +-- packages/cc/src/index_safe.ts | 1 + packages/core/package.json | 5 +++++ packages/core/src/index.ts | 7 +------ packages/core/src/index_browser.ts | 7 +------ packages/core/src/index_safe.ts | 7 +------ packages/core/src/traits/index.ts | 6 ++++++ packages/zwave-js/src/index_safe.ts | 1 + 8 files changed, 17 insertions(+), 20 deletions(-) create mode 100644 packages/core/src/traits/index.ts diff --git a/packages/cc/src/index_browser.ts b/packages/cc/src/index_browser.ts index 398670eef329..cdd1a0e6c2f3 100644 --- a/packages/cc/src/index_browser.ts +++ b/packages/cc/src/index_browser.ts @@ -2,7 +2,7 @@ export * from "./lib/Security2/shared.js"; export * from "./lib/SetValueResult.js"; -export * from "./lib/SetValueResult.js"; +// eslint-disable-next-line @zwave-js/no-forbidden-imports -- FIXME: This is actually wrong, but I need to get the release done export { defaultCCValueOptions } from "./lib/Values.js"; export type { CCValueOptions, @@ -10,4 +10,3 @@ export type { PartialCCValuePredicate, } from "./lib/Values.js"; export * from "./lib/_Types.js"; -export * from "./lib/_Types.js"; diff --git a/packages/cc/src/index_safe.ts b/packages/cc/src/index_safe.ts index 99eb5834d53d..6a51f341606f 100644 --- a/packages/cc/src/index_safe.ts +++ b/packages/cc/src/index_safe.ts @@ -1,4 +1,5 @@ /* @forbiddenImports external */ export * from "./lib/SetValueResult.js"; +// eslint-disable-next-line @zwave-js/no-forbidden-imports -- FIXME: This is actually wrong, but I need to get the release done export * from "./lib/_Types.js"; diff --git a/packages/core/package.json b/packages/core/package.json index 5b6b1624f4da..9e702a3f6325 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -49,6 +49,11 @@ "import": "./build/esm/registries/index.js", "require": "./build/cjs/registries/index.js" }, + "./traits": { + "@@dev": "./src/traits/index.ts", + "import": "./build/esm/traits/index.js", + "require": "./build/cjs/traits/index.js" + }, "./qr": { "@@dev": "./src/qr/index.ts", "browser": "./build/esm/qr/index.browser.js", diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index e51bed3f6903..668462c617b7 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -13,12 +13,7 @@ export * from "./security/Manager.js"; export * from "./security/Manager2.js"; export * from "./security/ctr_drbg.wrapper.js"; export * from "./test/assertZWaveError.js"; -export * from "./traits/CommandClasses.js"; -export * from "./traits/Endpoints.js"; -export type * from "./traits/FileSystem.js"; -export * from "./traits/Nodes.js"; -export * from "./traits/SecurityClasses.js"; -export * from "./traits/SecurityManagers.js"; +export type * from "./traits/index.js"; export * from "./util/_Types.js"; export * from "./util/compareVersions.js"; export { deflateSync } from "./util/compression.js"; diff --git a/packages/core/src/index_browser.ts b/packages/core/src/index_browser.ts index 531b0bad31e8..d29e8324cf29 100644 --- a/packages/core/src/index_browser.ts +++ b/packages/core/src/index_browser.ts @@ -14,12 +14,7 @@ export * from "./registries/Meters.js"; export * from "./registries/Notifications.js"; export * from "./registries/Scales.js"; export * from "./registries/Sensors.js"; -export type * from "./traits/CommandClasses.js"; -export type * from "./traits/Endpoints.js"; -export type * from "./traits/FileSystem.js"; -export type * from "./traits/Nodes.js"; -export type * from "./traits/SecurityClasses.js"; -export type * from "./traits/SecurityManagers.js"; +export type * from "./traits/index.js"; export type * from "./util/_Types.js"; export { deflateSync } from "./util/compression.js"; export * from "./util/config.js"; diff --git a/packages/core/src/index_safe.ts b/packages/core/src/index_safe.ts index 9bd9b652f48a..683b9a763d88 100644 --- a/packages/core/src/index_safe.ts +++ b/packages/core/src/index_safe.ts @@ -13,12 +13,7 @@ export * from "./registries/Meters.js"; export * from "./registries/Notifications.js"; export * from "./registries/Scales.js"; export * from "./registries/Sensors.js"; -export * from "./traits/CommandClasses.js"; -export * from "./traits/Endpoints.js"; -export type * from "./traits/FileSystem.js"; -export type * from "./traits/Nodes.js"; -export type * from "./traits/SecurityClasses.js"; -export type * from "./traits/SecurityManagers.js"; +export type * from "./traits/index.js"; export * from "./util/_Types.js"; export { deflateSync } from "./util/compression.js"; export * from "./util/config.js"; diff --git a/packages/core/src/traits/index.ts b/packages/core/src/traits/index.ts new file mode 100644 index 000000000000..67cbbb817259 --- /dev/null +++ b/packages/core/src/traits/index.ts @@ -0,0 +1,6 @@ +export type * from "./CommandClasses.js"; +export type * from "./Endpoints.js"; +export type * from "./FileSystem.js"; +export type * from "./Nodes.js"; +export type * from "./SecurityClasses.js"; +export type * from "./SecurityManagers.js"; diff --git a/packages/zwave-js/src/index_safe.ts b/packages/zwave-js/src/index_safe.ts index ae8dfc648e80..41188b82b995 100644 --- a/packages/zwave-js/src/index_safe.ts +++ b/packages/zwave-js/src/index_safe.ts @@ -1,5 +1,6 @@ /* @forbiddenImports external */ +// eslint-disable-next-line @zwave-js/no-forbidden-imports -- FIXME: This is actually wrong, but I need to get the release done export * from "./Controller_safe.js"; // export * from "./Driver"; export * from "./Error.js";