diff --git a/client/.eslintrc.js b/client/.eslintrc.js
index c0e54dcb7f..45644f6d19 100644
--- a/client/.eslintrc.js
+++ b/client/.eslintrc.js
@@ -20,6 +20,7 @@ module.exports = {
// allow debugger during development
"no-debugger": process.env.NODE_ENV === "production" ? 2 : 0,
"jsx-a11y/anchor-is-valid": "off",
+ "no-console": ["warn", { allow: ["warn", "error"] }],
"no-restricted-imports": [
"error",
{
diff --git a/client/app/components/ApplicationArea/routeWithUserSession.tsx b/client/app/components/ApplicationArea/routeWithUserSession.tsx
index efc6e5628a..ed943c3b4a 100644
--- a/client/app/components/ApplicationArea/routeWithUserSession.tsx
+++ b/client/app/components/ApplicationArea/routeWithUserSession.tsx
@@ -1,5 +1,4 @@
import React, { useEffect, useState } from "react";
-// @ts-expect-error (Must be removed after adding @redash/viz typing)
import ErrorBoundary, { ErrorBoundaryContext } from "@redash/viz/lib/components/ErrorBoundary";
import { Auth } from "@/services/auth";
import { policy } from "@/services/policy";
@@ -62,9 +61,10 @@ export function UserSessionWrapper
({ bodyClass, currentRoute, render }: UserS
return (
+ {/* @ts-expect-error FIXME */}
}>
- {({ handleError }: { handleError: UserSessionWrapperRenderChildrenProps["onError"] }) =>
+ {({ handleError } /* : { handleError: UserSessionWrapperRenderChildrenProps
["onError"] } FIXME bring back type */) =>
render({ ...currentRoute.routeParams, pageTitle: currentRoute.title, onError: handleError })
}
diff --git a/client/app/pages/settings/OrganizationSettings.jsx b/client/app/pages/settings/OrganizationSettings.jsx
index bc1e5c82bb..3228b80cba 100644
--- a/client/app/pages/settings/OrganizationSettings.jsx
+++ b/client/app/pages/settings/OrganizationSettings.jsx
@@ -26,7 +26,7 @@ function OrganizationSettings({ onError }) {
{isLoading ? (
) : (
-