Browse Source

fix: @typescript-eslint/prefer-function-type

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
pull/3981/head
dw-0 10 months ago
committed by Thomas Kaul
parent
commit
a5fdd7c783
  1. 1
      .eslintrc.json
  2. 2
      apps/client/src/app/util/form.util.ts

1
.eslintrc.json

@ -142,7 +142,6 @@
// The following rules are part of @typescript-eslint/stylistic-type-checked
// and can be remove once solved
"@typescript-eslint/prefer-function-type": "warn",
"@typescript-eslint/prefer-nullish-coalescing": "warn", // TODO: Requires strictNullChecks: true
"@typescript-eslint/consistent-type-assertions": "warn",
"@typescript-eslint/prefer-optional-chain": "warn",

2
apps/client/src/app/util/form.util.ts

@ -8,7 +8,7 @@ export async function validateObjectForForm<T>({
ignoreFields = [],
object
}: {
classDto: { new (): T };
classDto: new () => T;
form: FormGroup;
ignoreFields?: string[];
object: T;

Loading…
Cancel
Save