From aa7c01c2936ce64aef98e663f68a31cf23ee7d9a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 28 Apr 2026 17:32:35 +0530 Subject: [PATCH] chore(deps): update dependency typescript-eslint to v8.59.0 (#67143) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> --- .../components/formHelpers/form-fields.tsx | 9 +- client/src/components/formHelpers/form.tsx | 8 +- .../src/components/settings/certification.tsx | 2 +- .../components/settings/scrollbar-width.tsx | 2 +- .../src/templates/Challenges/utils/build.ts | 3 +- .../Introduction/components/block.tsx | 2 +- .../components/cert-challenge.tsx | 2 +- client/src/utils/handled-error.test.ts | 6 +- client/tools/create-env.ts | 2 +- pnpm-lock.yaml | 154 +++++++++--------- 10 files changed, 93 insertions(+), 97 deletions(-) diff --git a/client/src/components/formHelpers/form-fields.tsx b/client/src/components/formHelpers/form-fields.tsx index 39cc2167bdc..a90f3ce4e82 100644 --- a/client/src/components/formHelpers/form-fields.tsx +++ b/client/src/components/formHelpers/form-fields.tsx @@ -116,16 +116,11 @@ function FormFields({ formFields, options }: FormFieldsProps): JSX.Element { required={required.includes(name)} rows={4} type={types[name] || 'text'} - value={value as string} + value={value} aria-describedby={`${name}-message`} data-playwright-test-label={`${name}-form-control`} /> - {nullOrWarning( - value as string, - !pristine && error, - isURL, - name - )} + {nullOrWarning(value, !pristine && error, isURL, name)} ); }} diff --git a/client/src/components/formHelpers/form.tsx b/client/src/components/formHelpers/form.tsx index e30776b21ba..edf69a35f6f 100644 --- a/client/src/components/formHelpers/form.tsx +++ b/client/src/components/formHelpers/form.tsx @@ -1,4 +1,4 @@ -import React, { FormEvent } from 'react'; +import React from 'react'; import { Form } from 'react-final-form'; import normalizeUrl from 'normalize-url'; @@ -126,13 +126,15 @@ export const StrictSolutionForm = ({ {({ handleSubmit, pristine, error }) => (