Skip to content

Commit 553db87

Browse files
refactor(sdk-node): fix eslint warning (#5400)
Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com>
1 parent 74d434e commit 553db87

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

  • experimental/packages/opentelemetry-sdk-node/src

experimental/packages/opentelemetry-sdk-node/src/index.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@
1414
* limitations under the License.
1515
*/
1616

17-
/* eslint no-restricted-syntax: ["warn", "ExportAllDeclaration"] --
18-
* TODO: Replace wildcard export with named exports before next major version
19-
*/
17+
// This is a meta-package, and these exist in to re-export *all* items from
18+
// the individual packages as individual _namespaces_, so wildcard exports are
19+
// appropriate here. Otherwise, it'd be a pain to enumerate and keep things
20+
// in-sync with all the upstream packages.
21+
22+
/* eslint-disable no-restricted-syntax */
2023
export * as api from '@opentelemetry/api';
2124
export * as contextBase from '@opentelemetry/api';
2225
export * as core from '@opentelemetry/core';
@@ -25,6 +28,8 @@ export * as metrics from '@opentelemetry/sdk-metrics';
2528
export * as node from '@opentelemetry/sdk-trace-node';
2629
export * as resources from '@opentelemetry/resources';
2730
export * as tracing from '@opentelemetry/sdk-trace-base';
31+
/* eslint-enable no-restricted-syntax */
32+
2833
export { NodeSDK } from './sdk';
2934
export type { LoggerProviderConfig, MeterProviderConfig } from './sdk';
3035
export type { NodeSDKConfiguration } from './types';

0 commit comments

Comments
 (0)