Skip to content

Commit

Permalink
chore(dev): added no-floating-promises rule and `projectService: tr…
Browse files Browse the repository at this point in the history
…ue` to eslint config (#12440)
  • Loading branch information
KostyaTretyak authored Jan 7, 2025
1 parent 41f19cc commit 47cf4bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export default tsEslint.config(
languageOptions: {
parser: tsEslint.parser,
parserOptions: {
projectService: true,
project: ["./packages/utils/tsconfig.eslint.json"],
},
globals: {
Expand All @@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-typeorm/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 47cf4bf

Please sign in to comment.