Skip to content

Commit 47cf4bf

Browse files
chore(dev): added no-floating-promises rule and projectService: true to eslint config (#12440)
1 parent 41f19cc commit 47cf4bf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

eslint.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export default tsEslint.config(
4040
languageOptions: {
4141
parser: tsEslint.parser,
4242
parserOptions: {
43+
projectService: true,
4344
project: ["./packages/utils/tsconfig.eslint.json"],
4445
},
4546
globals: {
@@ -55,6 +56,7 @@ export default tsEslint.config(
5556
rules: {
5657
"prefer-const": ["error", { destructuring: "all" }],
5758
"no-empty": ["error", { allowEmptyCatch: true }],
59+
"@typescript-eslint/no-floating-promises": "error",
5860
"@typescript-eslint/no-explicit-any": "warn",
5961
"@typescript-eslint/ban-ts-comment": "warn",
6062
"@typescript-eslint/no-empty-object-type": [

packages/adapter-typeorm/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export async function updateConnectionEntities(
9898
dataSource.entityMetadatas = entities
9999

100100
// @ts-expect-error
101-
dataSource.buildMetadatas()
101+
await dataSource.buildMetadatas()
102102

103103
if (dataSource.options.synchronize !== false) {
104104
console.warn(

0 commit comments

Comments
 (0)