Skip to content

Commit a3afe56

Browse files
committed
💄 Format allJsonSchemas.ts
1 parent 0ddee0c commit a3afe56

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
/// <reference types="vite/client" />
22
// Load all JSON schema files from @datadog/rum-events-format dependency.
33
// Uses Vite's import.meta.glob (replaces webpack's require.context).
4-
const schemaModules = import.meta.glob(
5-
'../../../node_modules/@datadog/rum-events-format/schemas/**/*.json',
6-
{ eager: true }
7-
)
4+
const schemaModules = import.meta.glob('../../../node_modules/@datadog/rum-events-format/schemas/**/*.json', {
5+
eager: true,
6+
})
87

98
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
109
export const allJsonSchemas = Object.values(schemaModules).map((mod: any) => mod.default || mod)

0 commit comments

Comments
 (0)