chore: add typed ESLint checks #18

Refs WealthLedger/main#18. Keep Biome; add no Prettier dependencies.
This commit is contained in:
2026-09-28 16:36:40 +03:00
committed by ksv741
parent 95fdc8759e
commit 57630102e4
38 changed files with 2914 additions and 155 deletions
@@ -27,8 +27,6 @@ describe("AuthForm", () => {
fireEvent.click(screen.getByRole("button", { name: "Регистрация" }));
await waitFor(() => expect(onSubmit).not.toHaveBeenCalled());
await waitFor(() =>
expect(screen.getByText("Пароли не совпадают")).toBeInTheDocument(),
);
expect(await screen.findByText("Пароли не совпадают")).toBeInTheDocument();
});
});
+2 -2
View File
@@ -1,6 +1,6 @@
import type { FC } from "react";
import { useLocation, useNavigate } from "react-router";
import { useAuth } from "../model/auth";
import { useAuth } from "../model/auth-context";
import { AuthForm } from "./AuthForm/AuthForm";
const LoginForm: FC = () => {
@@ -14,7 +14,7 @@ const LoginForm: FC = () => {
<AuthForm
onSubmit={async (email, password) => {
await login(email, password);
navigate(returnTo, { replace: true });
await navigate(returnTo, { replace: true });
}}
/>
);
+2 -2
View File
@@ -1,6 +1,6 @@
import type { FC } from "react";
import { useLocation, useNavigate } from "react-router";
import { useAuth } from "../model/auth";
import { useAuth } from "../model/auth-context";
import { AuthForm } from "./AuthForm/AuthForm";
const RegisterForm: FC = () => {
@@ -15,7 +15,7 @@ const RegisterForm: FC = () => {
register
onSubmit={async (email, password) => {
await register(email, password);
navigate(returnTo, { replace: true });
await navigate(returnTo, { replace: true });
}}
/>
);