diff --git a/eslint.config.mjs b/eslint.config.mjs index 0abf1d0ab1..b0259c1098 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -40,6 +40,7 @@ export default tsEslint.config( languageOptions: { parser: tsEslint.parser, parserOptions: { + projectService: true, project: ["./packages/utils/tsconfig.eslint.json"], }, globals: { @@ -55,6 +56,7 @@ export default tsEslint.config( rules: { "prefer-const": ["error", { destructuring: "all" }], "no-empty": ["error", { allowEmptyCatch: true }], + "@typescript-eslint/no-floating-promises": "error", "@typescript-eslint/no-explicit-any": "warn", "@typescript-eslint/ban-ts-comment": "warn", "@typescript-eslint/no-empty-object-type": [ diff --git a/packages/adapter-typeorm/src/utils.ts b/packages/adapter-typeorm/src/utils.ts index 97a0a30424..0363f3d2d5 100644 --- a/packages/adapter-typeorm/src/utils.ts +++ b/packages/adapter-typeorm/src/utils.ts @@ -98,7 +98,7 @@ export async function updateConnectionEntities( dataSource.entityMetadatas = entities // @ts-expect-error - dataSource.buildMetadatas() + await dataSource.buildMetadatas() if (dataSource.options.synchronize !== false) { console.warn(