Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

chore(frontend): remove unused lint disable directives and enforce it (#9028)

Andrew Huang439bece88e31
diff --git a/frontend/AGENTS.md b/frontend/AGENTS.md
index 188ca7af99..c1e4892e47 100644
--- a/frontend/AGENTS.md
+++ b/frontend/AGENTS.md
@@ -116,7 +116,7 @@ Secret Scanning has one active project per org (see the root `AGENTS.md`). Membe
## Conventions
- App browser titles use `PageTitle` from `@app/components/PageTitle`, which applies the localized `common.head-title` format (`Page | Infisical`) without suspending loading/error fallbacks. Pass a page label, not an already branded string. Keep one title mounted per screen, including loading, empty, and denied states; place it outside permission guards when necessary. The static HTML title is handed off before React mounts, preserving a no-JS fallback without duplicates. Custom-branded public sharing keeps its existing native, unbranded title; its loading title must not assume Infisical branding before configuration resolves. Use resource names only, never secret values or tokens.
-- TypeScript 7. Oxlint (`.oxlintrc.json`, type-aware via the `--type-aware` CLI flag) lints and Oxfmt (`.oxfmtrc.json`) formats, sorts Tailwind classes, and orders imports: builtins and react/external packages → `@app/` → internal → relative → styles → other side-effect imports. Existing `eslint-disable` comments are honoured by Oxlint. Editor setup lives in `frontend/.vscode/` and `frontend/.zed/`.
+- TypeScript 7. Oxlint (`.oxlintrc.json`, type-aware via the `--type-aware` CLI flag) lints and Oxfmt (`.oxfmtrc.json`) formats, sorts Tailwind classes, and orders imports: builtins and react/external packages → `@app/` → internal → relative → styles → other side-effect imports. Oxlint honours `eslint-disable` comments, and `npm run lint` fails on a disable comment that suppresses nothing, so remove one when the code it covered goes away. Some rules from the old ESLint config have no Oxlint equivalent and are no longer enforced: `import/no-extraneous-dependencies` (declare every package you import in `package.json` yourself), `no-restricted-syntax` (`for...of` is allowed), `@typescript-eslint/naming-convention`, the TanStack Router route property order rule, and the Storybook plugin rules. Editor setup lives in `frontend/.vscode/` and `frontend/.zed/`.
- Forms use `react-hook-form` with `@hookform/resolvers` (Zod schemas).
- Search params validated with `zodValidator()` from `@tanstack/zod-adapter`.
- Toasts: call `createNotification({ title?, text, type, callToAction?, copyActions? })` from `@app/components/notifications`. Backed by **sonner** (the v3 `Toaster` in `components/v3/generic/Toast`), mounted once via `NotificationContainer` in `pages/root.tsx`. `react-toastify` has been removed, so do not reintroduce it.
diff --git a/frontend/package.json b/frontend/package.json
index 1d3e8559ad..518786a3a5 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -11,8 +11,8 @@
"dev": "vite",
"build": "tsc -b && vite build",
"preview": "vite preview",
- "lint": "oxlint --type-aware --max-warnings 0 src && oxfmt --check 'src/**/*.{ts,tsx}'",
- "lint:fix": "oxlint --type-aware --fix --max-warnings 0 src && oxfmt 'src/**/*.{ts,tsx}'",
+ "lint": "oxlint --type-aware --report-unused-disable-directives-severity=error --max-warnings 0 src && oxfmt --check 'src/**/*.{ts,tsx}'",
+ "lint:fix": "oxlint --type-aware --report-unused-disable-directives-severity=error --fix --max-warnings 0 src && oxfmt 'src/**/*.{ts,tsx}'",
"test": "vitest run -c vitest.config.mts",
"type:check": "tsc --noEmit --project ./tsconfig.app.json",
"storybook": "storybook dev -p 6006",
diff --git a/frontend/src/components/agent-vault/PersonalValuesDialog.tsx b/frontend/src/components/agent-vault/PersonalValuesDialog.tsx
index 730ebedec1..270f61be6e 100644
--- a/frontend/src/components/agent-vault/PersonalValuesDialog.tsx
+++ b/frontend/src/components/agent-vault/PersonalValuesDialog.tsx
@@ -220,7 +220,6 @@ export const PersonalValuesDialog = ({ target, onOpenChange }: Props) => {
const known = new Set(variableKeys);
return new Set(referencedKeys.filter((key) => !known.has(key)));
// Keyed on the joined list, which is new on every render as an array.
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [variableKeys, referencedKeys.join(",")]);
const ownVariables = useMemo(
() => ({
diff --git a/frontend/src/components/auth/ProductSelectionStep.tsx b/frontend/src/components/auth/ProductSelectionStep.tsx
index 3022576386..3cbac1f9e9 100644
--- a/frontend/src/components/auth/ProductSelectionStep.tsx
+++ b/frontend/src/components/auth/ProductSelectionStep.tsx
@@ -102,7 +102,6 @@ export default function ProductSelectionStep({
try {
const projects = createdProjectsRef.current;
// Projects are set up one at a time so a failure points at a specific product.
- // eslint-disable-next-line no-restricted-syntax
for (const type of orderedSelection) {
if (!(type in projects)) {
failedProduct = getSignupProduct(type)?.name;
diff --git a/frontend/src/components/dynamic-secrets/DynamicSecretProviderForm/registry.ts b/frontend/src/components/dynamic-secrets/DynamicSecretProviderForm/registry.ts
index 611db621ba..77d7228bc6 100644
--- a/frontend/src/components/dynamic-secrets/DynamicSecretProviderForm/registry.ts
+++ b/frontend/src/components/dynamic-secrets/DynamicSecretProviderForm/registry.ts
@@ -7,9 +7,7 @@ export type TRegisteredDynamicSecretProviderDefinition = TDynamicSecretProviderD
DynamicSecretProviders,
// Provider value types remain available from each concrete definition. The
// composition root intentionally erases them for heterogeneous lookup.
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
any,
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
any
>;
diff --git a/frontend/src/components/license/UpgradeGate/CapabilityUpgradeGate.tsx b/frontend/src/components/license/UpgradeGate/CapabilityUpgradeGate.tsx
index b6bd8e3c28..5546d65e64 100644
--- a/frontend/src/components/license/UpgradeGate/CapabilityUpgradeGate.tsx
+++ b/frontend/src/components/license/UpgradeGate/CapabilityUpgradeGate.tsx
@@ -85,7 +85,6 @@ const CapabilityUpgradeDialog = ({
eventPropertiesRef.current = eventProperties;
analytics.captureForOrganization(AnalyticsEvent.PaywallViewed, currentOrg.id, eventProperties);
// Capture the opening intent once, even when the triggering popup data changes.
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [isOpen]);
if (!isOpen) return null;
diff --git a/frontend/src/components/page-frames/Banner.tsx b/frontend/src/components/page-frames/Banner.tsx
index 1ae1af0a51..61bd47ef54 100644
--- a/frontend/src/components/page-frames/Banner.tsx
+++ b/frontend/src/components/page-frames/Banner.tsx
@@ -7,7 +7,6 @@ import { useServerConfig } from "@app/context";
export const Banner = () => {
const { config } = useServerConfig();
- // eslint-disable-next-line react/no-danger-with-children
return config.pageFrameContent ? (
<div className="h-[3vh] w-full text-center">
<ReactMarkdown rehypePlugins={[rehypeRaw]}>
diff --git a/frontend/src/components/proxied-services/forms/CreateProxiedServiceForm.tsx b/frontend/src/components/proxied-services/forms/CreateProxiedServiceForm.tsx
index b2d1242209..5436933113 100644
--- a/frontend/src/components/proxied-services/forms/CreateProxiedServiceForm.tsx
+++ b/frontend/src/components/proxied-services/forms/CreateProxiedServiceForm.tsx
@@ -70,7 +70,6 @@ export const CreateProxiedServiceForm = ({
const defaultValues = useMemo(
() => (template ? buildTemplateFormValues(template, existingNames) : emptyFormValues()),
// seed once on mount; regenerating would churn the placeholder values
- // eslint-disable-next-line react-hooks/exhaustive-deps
[]
);
diff --git a/frontend/src/components/secrets/diff/SecretDiffView.tsx b/frontend/src/components/secrets/diff/SecretDiffView.tsx
index 251f6662d0..27756ba989 100644
--- a/frontend/src/components/secrets/diff/SecretDiffView.tsx
+++ b/frontend/src/components/secrets/diff/SecretDiffView.tsx
@@ -1,5 +1,3 @@
-/* eslint-disable jsx-a11y/no-static-element-interactions */
-/* eslint-disable jsx-a11y/click-events-have-key-events */
import { useRef, useState } from "react";
import { EyeIcon, EyeOffIcon, TriangleAlertIcon } from "lucide-react";
import { twMerge } from "tailwind-merge";
diff --git a/frontend/src/components/secrets/diff/SecretVersionDiffView.tsx b/frontend/src/components/secrets/diff/SecretVersionDiffView.tsx
index 28644aa059..2717873c57 100644
--- a/frontend/src/components/secrets/diff/SecretVersionDiffView.tsx
+++ b/frontend/src/components/secrets/diff/SecretVersionDiffView.tsx
@@ -1,4 +1,3 @@
-/* eslint-disable no-nested-ternary */
import { type JSX, useState } from "react";
import { FolderIcon, KeyRoundIcon, TrashIcon } from "lucide-react";
import { twMerge } from "tailwind-merge";
diff --git a/frontend/src/components/utilities/checks/password/passwordRegexes.ts b/frontend/src/components/utilities/checks/password/passwordRegexes.ts
index 60b138a2b1..01946892bc 100644
--- a/frontend/src/components/utilities/checks/password/passwordRegexes.ts
+++ b/frontend/src/components/utilities/checks/password/passwordRegexes.ts
@@ -1,5 +1,4 @@
// This regex covers letters (case insensitive) for the top 50 most spoken languages
-/* eslint-disable no-misleading-character-class */
export const letterCharRegex =
/[A-Za-z\u00C0-\u00D6\u00D8-\u00DE\u00DF-\u00F6\u00F8-\u00FF\u3040-\u309F\u30A0-\u30FF\u4E00-\u9FFF\u0600-\u06FF\u0400-\u04FF\u0500-\u052F\u2DE0-\u2DFF\uA640-\uA69F\u05B0-\u05FF\u0980-\u09FF\u1F00-\u1FFF\u0130\u015E\u011E\u00C7\u00FC\u00FB\u00EB\u00E7]/u;
diff --git a/frontend/src/components/v3/generic/Alert/DismissableAlert.tsx b/frontend/src/components/v3/generic/Alert/DismissableAlert.tsx
index dfe72d2374..7955a2b33c 100644
--- a/frontend/src/components/v3/generic/Alert/DismissableAlert.tsx
+++ b/frontend/src/components/v3/generic/Alert/DismissableAlert.tsx
@@ -1,5 +1,3 @@
-/* eslint-disable react/prop-types */
-
import * as React from "react";
import { XIcon } from "lucide-react";
diff --git a/frontend/src/components/v3/generic/DataGrid/compose-refs.ts b/frontend/src/components/v3/generic/DataGrid/compose-refs.ts
index a460e1a3be..7a5f1c173a 100644
--- a/frontend/src/components/v3/generic/DataGrid/compose-refs.ts
+++ b/frontend/src/components/v3/generic/DataGrid/compose-refs.ts
@@ -10,7 +10,6 @@ type PossibleRef<T> = React.Ref<T> | undefined;
* Set a given ref to a given value
* This utility takes care of different types of refs: callback refs and RefObject(s)
*/
-// eslint-disable-next-line consistent-return
function setRef<T>(ref: PossibleRef<T>, value: T) {
if (typeof ref === "function") {
return ref(value);
diff --git a/frontend/src/components/v3/generic/DataGrid/data-grid-cell-variants.tsx b/frontend/src/components/v3/generic/DataGrid/data-grid-cell-variants.tsx
index 9fb52aa936..8e48fd37ea 100644
--- a/frontend/src/components/v3/generic/DataGrid/data-grid-cell-variants.tsx
+++ b/frontend/src/components/v3/generic/DataGrid/data-grid-cell-variants.tsx
@@ -1,6 +1,6 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck -- vendored Dice UI component, large file with complex generic types pending cleanup
-/* eslint-disable no-restricted-syntax, no-nested-ternary, no-continue, no-param-reassign, @typescript-eslint/no-shadow, jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/role-supports-aria-props */
+/* eslint-disable no-nested-ternary, no-continue, no-param-reassign, @typescript-eslint/no-shadow, jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/role-supports-aria-props */
import * as React from "react";
import { Check, Upload, X } from "lucide-react";
@@ -171,7 +171,6 @@ export function ShortTextCell<TData>({
}
}
// Only run on edit start — not on every value change (which moves cursor to end)
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [isEditing]);
const isNull = value === null || value === undefined;
@@ -694,7 +693,6 @@ export function UrlCell<TData>({
}
}
// Only run on edit start — not on every value change (which moves cursor to end)
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [isEditing]);
const displayValue = !isEditing ? (value ?? "") : "";
diff --git a/frontend/src/components/v3/generic/DataGrid/data-grid-column-header.tsx b/frontend/src/components/v3/generic/DataGrid/data-grid-column-header.tsx
index ec2d796306..1d582a6544 100644
--- a/frontend/src/components/v3/generic/DataGrid/data-grid-column-header.tsx
+++ b/frontend/src/components/v3/generic/DataGrid/data-grid-column-header.tsx
@@ -113,7 +113,6 @@ function DataGridColumnResizerImpl<TData, TValue>({
}, [header.column]);
return (
- // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/no-noninteractive-tabindex
<div
role="separator"
aria-orientation="vertical"
@@ -121,7 +120,7 @@ function DataGridColumnResizerImpl<TData, TValue>({
aria-valuenow={header.column.getSize()}
aria-valuemin={defaultColumnDef.minSize}
aria-valuemax={defaultColumnDef.maxSize}
- tabIndex={0} // eslint-disable-line jsx-a11y/no-noninteractive-tabindex
+ tabIndex={0}
className={cn(
"absolute -end-px top-0 z-50 h-full w-0.5 cursor-ew-resize touch-none bg-border transition-opacity select-none after:absolute after:inset-y-0 after:start-1/2 after:h-full after:w-[18px] after:-translate-x-1/2 after:content-[''] hover:bg-foreground focus:bg-foreground focus:outline-none",
header.column.getIsResizing() ? "bg-foreground" : "opacity-0 hover:opacity-100"
diff --git a/frontend/src/components/v3/generic/DataGrid/data-grid-context-menu.tsx b/frontend/src/components/v3/generic/DataGrid/data-grid-context-menu.tsx
index 34fe9450c2..30cf5feaec 100644
--- a/frontend/src/components/v3/generic/DataGrid/data-grid-context-menu.tsx
+++ b/frontend/src/components/v3/generic/DataGrid/data-grid-context-menu.tsx
@@ -164,7 +164,6 @@ function ContextMenuImpl<TData>({
const updates: Array<CellUpdate> = [];
- // eslint-disable-next-line no-restricted-syntax
for (const cellKey of selectionState.selectedCells) {
const { rowIndex, columnId } = parseCellKey(cellKey);
@@ -201,7 +200,6 @@ function ContextMenuImpl<TData>({
const updates: Array<CellUpdate> = [];
- // eslint-disable-next-line no-restricted-syntax
for (const cellKey of selectionState.selectedCells) {
const { rowIndex, columnId } = parseCellKey(cellKey);
updates.push({ rowIndex, columnId, value: null });
diff --git a/frontend/src/components/v3/generic/DataGrid/data-grid-paste-dialog.tsx b/frontend/src/components/v3/generic/DataGrid/data-grid-paste-dialog.tsx
index 0828fd0efc..620d46c24b 100644
--- a/frontend/src/components/v3/generic/DataGrid/data-grid-paste-dialog.tsx
+++ b/frontend/src/components/v3/generic/DataGrid/data-grid-paste-dialog.tsx
@@ -120,7 +120,6 @@ function PasteDialogImpl({ pasteDialog, onPasteDialogOpenChange, onCellsPaste }:
);
}
-// eslint-disable-next-line react/prop-types
function RadioItem({ className, ...props }: React.ComponentProps<"input">) {
return (
<input
diff --git a/frontend/src/components/v3/generic/DataGrid/data-grid-types.ts b/frontend/src/components/v3/generic/DataGrid/data-grid-types.ts
index 74637172ae..81948e16bc 100644
--- a/frontend/src/components/v3/generic/DataGrid/data-grid-types.ts
+++ b/frontend/src/components/v3/generic/DataGrid/data-grid-types.ts
@@ -56,7 +56,6 @@ export interface CellUpdate {
}
declare module "@tanstack/react-table" {
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
interface ColumnMeta<TData extends RowData, TValue> {
label?: string;
typeLabel?: string;
@@ -67,7 +66,6 @@ declare module "@tanstack/react-table" {
};
}
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
interface TableMeta<TData extends RowData> {
dataGridRef?: React.RefObject<HTMLElement | null>;
cellMapRef?: React.RefObject<Map<string, HTMLDivElement>>;
diff --git a/frontend/src/components/v3/generic/DataGrid/data-grid.tsx b/frontend/src/components/v3/generic/DataGrid/data-grid.tsx
index 47bb6b5a01..843750b954 100644
--- a/frontend/src/components/v3/generic/DataGrid/data-grid.tsx
+++ b/frontend/src/components/v3/generic/DataGrid/data-grid.tsx
@@ -153,7 +153,7 @@ export function DataGrid<TData>({
? "ascending"
: currentSort?.desc === true // eslint-disable-line no-nested-ternary
? "descending"
- : isSortable // eslint-disable-line no-nested-ternary
+ : isSortable
? "none"
: undefined
}
diff --git a/frontend/src/components/v3/generic/DataGrid/hooks/use-badge-overflow.ts b/frontend/src/components/v3/generic/DataGrid/hooks/use-badge-overflow.ts
index 6c2df5416f..9be162ffdd 100644
--- a/frontend/src/components/v3/generic/DataGrid/hooks/use-badge-overflow.ts
+++ b/frontend/src/components/v3/generic/DataGrid/hooks/use-badge-overflow.ts
@@ -122,7 +122,6 @@ export function useBadgeOverflow<T>({
let currentLine = 1;
const visible: T[] = [];
- // eslint-disable-next-line no-restricted-syntax
for (const item of items) {
const label = getLabel(item);
const cacheKey = cacheKeyPrefix ? `${cacheKeyPrefix}:${label}` : label;
diff --git a/frontend/src/components/v3/generic/Sidebar/Sidebar.tsx b/frontend/src/components/v3/generic/Sidebar/Sidebar.tsx
index e24739a2d0..96a6ef9f5d 100644
--- a/frontend/src/components/v3/generic/Sidebar/Sidebar.tsx
+++ b/frontend/src/components/v3/generic/Sidebar/Sidebar.tsx
@@ -98,7 +98,6 @@ function SidebarProvider({
// This is the internal state of the sidebar.
// We use openProp and setOpenProp for control from outside the component.
- // eslint-disable-next-line @typescript-eslint/naming-convention
const [_open, _setOpen] = React.useState(() => {
const cookie = document.cookie
.split("; ")
diff --git a/frontend/src/components/v3/platform/DateRangeFilter/DateRangeFilter.tsx b/frontend/src/components/v3/platform/DateRangeFilter/DateRangeFilter.tsx
index 869cc28f60..eed6a46527 100644
--- a/frontend/src/components/v3/platform/DateRangeFilter/DateRangeFilter.tsx
+++ b/frontend/src/components/v3/platform/DateRangeFilter/DateRangeFilter.tsx
@@ -320,7 +320,6 @@ export function DateRangeFilter({
const accentStyles = ACCENT_STYLES[accent];
- // eslint-disable-next-line react/no-unstable-nested-components
const DayButton = useCallback(
(props: React.ComponentProps<typeof CalendarDayButton>) => (
<CalendarDayButton {...props} className={accentStyles.calendarMiddle} />
diff --git a/frontend/src/components/v3/platform/PasswordGenerator/PasswordGenerator.tsx b/frontend/src/components/v3/platform/PasswordGenerator/PasswordGenerator.tsx
index a3122a41f4..17a8359bd9 100644
--- a/frontend/src/components/v3/platform/PasswordGenerator/PasswordGenerator.tsx
+++ b/frontend/src/components/v3/platform/PasswordGenerator/PasswordGenerator.tsx
@@ -276,7 +276,6 @@ export const PasswordGenerator = ({
}
return newPassword;
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [passwordOptions, refresh, selectedRule, valueConstraints]);
const copyToClipboard = () => {
diff --git a/frontend/src/components/v3/platform/SecretInput/SecretInput.tsx b/frontend/src/components/v3/platform/SecretInput/SecretInput.tsx
index 2f74aec49b..55f918e6f1 100644
--- a/frontend/src/components/v3/platform/SecretInput/SecretInput.tsx
+++ b/frontend/src/components/v3/platform/SecretInput/SecretInput.tsx
@@ -1,4 +1,3 @@
-/* eslint-disable react/no-danger */
import { forwardRef, ReactNode, TextareaHTMLAttributes, useEffect, useMemo, useState } from "react";
import { TriangleAlertIcon } from "lucide-react";
diff --git a/frontend/src/config/request.ts b/frontend/src/config/request.ts
index 82d3f3190c..5bcfa7b505 100644
--- a/frontend/src/config/request.ts
+++ b/frontend/src/config/request.ts
@@ -105,7 +105,6 @@ apiRequest.interceptors.response.use(
const newToken = await refreshPromise;
// Retry the original request with the new token
- // eslint-disable-next-line no-param-reassign
config.headers.Authorization = `Bearer ${newToken}`;
return await apiRequest(config);
} catch {
diff --git a/frontend/src/helpers/pkcs12.ts b/frontend/src/helpers/pkcs12.ts
index 2c22349b17..0945aa7176 100644
--- a/frontend/src/helpers/pkcs12.ts
+++ b/frontend/src/helpers/pkcs12.ts
@@ -284,7 +284,6 @@ const buildChain = async (leaf: TParsedCert, certs: TParsedCert[]) => {
});
let issuer: TParsedCert | null = null;
- // eslint-disable-next-line no-restricted-syntax
for (const candidate of candidates) {
// eslint-disable-next-line no-await-in-loop
const signed = await subject.cert
@@ -460,7 +459,6 @@ const extractPkcs12Entries = async ({
(cert) => !issuerSubjects.has(cert.cert.subject) || cert.cert.subject === cert.cert.issuer
);
- // eslint-disable-next-line no-restricted-syntax
for (const key of keys) {
const leaf = findLeafForKey(key, keys, certs, leaves);
const pairId = leaf ? `${leaf.fingerprint}:${key.pem}` : null;
diff --git a/frontend/src/hooks/api/secretApprovalRequest/mutation.tsx b/frontend/src/hooks/api/secretApprovalRequest/mutation.tsx
index 6a4bf9d28c..99ea6226a1 100644
--- a/frontend/src/hooks/api/secretApprovalRequest/mutation.tsx
+++ b/frontend/src/hooks/api/secretApprovalRequest/mutation.tsx
@@ -103,7 +103,6 @@ export const useBulkActOnSecretApprovalRequests = () => {
mutationFn: async ({ action, comment, requestIds }) => {
const results: TBulkChangeRequestResult[] = [];
- // eslint-disable-next-line no-restricted-syntax
for (const id of requestIds) {
try {
if (action === BulkChangeRequestAction.Merge) {
diff --git a/frontend/src/hooks/api/secretApprovalRequest/queries.tsx b/frontend/src/hooks/api/secretApprovalRequest/queries.tsx
index d96998f573..7b47a4b4d3 100644
--- a/frontend/src/hooks/api/secretApprovalRequest/queries.tsx
+++ b/frontend/src/hooks/api/secretApprovalRequest/queries.tsx
@@ -1,4 +1,3 @@
-/* eslint-disable no-param-reassign */
import { useQueries, useQuery, UseQueryOptions } from "@tanstack/react-query";
import { apiRequest } from "@app/config/request";
diff --git a/frontend/src/hooks/api/secretSyncs/types/checkly-sync.ts b/frontend/src/hooks/api/secretSyncs/types/checkly-sync.ts
index 10a8601de6..92c2572460 100644
--- a/frontend/src/hooks/api/secretSyncs/types/checkly-sync.ts
+++ b/frontend/src/hooks/api/secretSyncs/types/checkly-sync.ts
@@ -1,4 +1,3 @@
-/* eslint-disable @typescript-eslint/no-empty-object-type */
import { AppConnection } from "@app/hooks/api/appConnections/enums";
import { SecretSync } from "@app/hooks/api/secretSyncs";
import { TRootSecretSync } from "@app/hooks/api/secretSyncs/types/root-sync";
diff --git a/frontend/src/hooks/api/secretSyncs/types/digital-ocean-app-platform-sync.ts b/frontend/src/hooks/api/secretSyncs/types/digital-ocean-app-platform-sync.ts
index 98d1525319..6544a31220 100644
--- a/frontend/src/hooks/api/secretSyncs/types/digital-ocean-app-platform-sync.ts
+++ b/frontend/src/hooks/api/secretSyncs/types/digital-ocean-app-platform-sync.ts
@@ -1,4 +1,3 @@
-/* eslint-disable @typescript-eslint/no-empty-object-type */
import { AppConnection } from "@app/hooks/api/appConnections/enums";
import { SecretSync } from "@app/hooks/api/secretSyncs";
import { TRootSecretSync } from "@app/hooks/api/secretSyncs/types/root-sync";
diff --git a/frontend/src/hooks/api/secretSyncs/types/netlify-sync.ts b/frontend/src/hooks/api/secretSyncs/types/netlify-sync.ts
index 1163224ef5..df564eecd8 100644
--- a/frontend/src/hooks/api/secretSyncs/types/netlify-sync.ts
+++ b/frontend/src/hooks/api/secretSyncs/types/netlify-sync.ts
@@ -1,4 +1,3 @@
-/* eslint-disable @typescript-eslint/no-empty-object-type */
import { AppConnection } from "@app/hooks/api/appConnections/enums";
import { SecretSync } from "@app/hooks/api/secretSyncs";
import { TRootSecretSync } from "@app/hooks/api/secretSyncs/types/root-sync";
diff --git a/frontend/src/hooks/api/secretSyncs/types/supabase.ts b/frontend/src/hooks/api/secretSyncs/types/supabase.ts
index e38e264c3f..043969ea1d 100644
--- a/frontend/src/hooks/api/secretSyncs/types/supabase.ts
+++ b/frontend/src/hooks/api/secretSyncs/types/supabase.ts
@@ -1,4 +1,3 @@
-/* eslint-disable @typescript-eslint/no-empty-object-type */
import { AppConnection } from "@app/hooks/api/appConnections/enums";
import { SecretSync } from "@app/hooks/api/secretSyncs";
import { TRootSecretSync } from "@app/hooks/api/secretSyncs/types/root-sync";
diff --git a/frontend/src/hooks/useAgentVaultSheetState.ts b/frontend/src/hooks/useAgentVaultSheetState.ts
index 1c2fd39919..25956fba66 100644
--- a/frontend/src/hooks/useAgentVaultSheetState.ts
+++ b/frontend/src/hooks/useAgentVaultSheetState.ts
@@ -14,14 +14,12 @@ export const useAgentVaultSheetState = () => {
sessionId,
isOpen: Boolean(sessionId),
openSheet: (id: string) => {
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
navigate({ search: { ...search, sessionId: id } as any });
},
closeSheet: () => {
const rest = Object.fromEntries(
Object.entries(search).filter(([key]) => key !== "sessionId")
);
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
navigate({ search: rest as any });
}
};
diff --git a/frontend/src/hooks/usePamSheetState.ts b/frontend/src/hooks/usePamSheetState.ts
index 3071e9dcb3..381ecfb299 100644
--- a/frontend/src/hooks/usePamSheetState.ts
+++ b/frontend/src/hooks/usePamSheetState.ts
@@ -41,18 +41,15 @@ export const usePamSheetState = (key: PamSheetKey) => {
isOpen: Boolean(selectedId),
tab,
openSheet: (id: string, initialTab?: PamSheetTab) => {
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
navigate({ search: { ...search, [key]: id, tab: initialTab } as any });
},
setTab: (newTab: string) => {
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
navigate({ search: { ...search, tab: newTab } as any, replace: true });
},
closeSheet: () => {
const rest = Object.fromEntries(
Object.entries(search).filter(([k]) => k !== key && k !== "tab")
);
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
navigate({ search: rest as any });
}
};
diff --git a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/OrgNav.tsx b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/OrgNav.tsx
index 2b328a2ae3..1741c6f1af 100644
--- a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/OrgNav.tsx
+++ b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/OrgNav.tsx
@@ -24,7 +24,7 @@ export const OrgNav = () => {
useEffect(() => {
setShowSettings(isOnSettingsArea);
- }, [pathname]); // eslint-disable-line react-hooks/exhaustive-deps
+ }, [pathname]);
const handleOpenSettings = () => {
setShowSettings(true);
diff --git a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/OrgNavLink.tsx b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/OrgNavLink.tsx
index f5e2adc1d4..a272378a5c 100644
--- a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/OrgNavLink.tsx
+++ b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/OrgNavLink.tsx
@@ -47,11 +47,8 @@ export const OrgNavLink = ({
<SidebarMenuItem>
<SidebarMenuButton asChild closeOnMobile isActive={isActive} size="lg" tooltip={item.label}>
<Link
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
to={`/organizations/$orgId/${item.pathSuffix}` as any}
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
params={{ orgId } as any}
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
search={item.search as any}
>
<item.icon className="size-4" />
diff --git a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/ProjectNav.tsx b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/ProjectNav.tsx
index 077ac7579b..075471c01c 100644
--- a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/ProjectNav.tsx
+++ b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/ProjectNav.tsx
@@ -122,7 +122,7 @@ export const ProjectNav = () => {
useEffect(() => {
setActiveSubmenu(getInitialProjectSubmenu());
- }, [pathname, hasMultipleSecretScanningProjects]); // eslint-disable-line react-hooks/exhaustive-deps
+ }, [pathname, hasMultipleSecretScanningProjects]);
const handleSubmenuOpen = (submenu: Submenu) => {
setActiveSubmenu(submenu);
@@ -135,13 +135,10 @@ export const ProjectNav = () => {
: `/organizations/${currentOrg.id}/projects/${typePath}/${currentProject.id}/${submenu.pathSuffix}`;
if (pathname === submenuPath || pathname.startsWith(`${submenuPath}/`)) return;
navigate({
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
to: isOrgScoped
? (`/organizations/$orgId/${typePath}/${submenu.pathSuffix}` as any)
: (`/organizations/$orgId/projects/${typePath}/$projectId/${submenu.pathSuffix}` as any),
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
params: { orgId: currentOrg.id, projectId: currentProject.id } as any,
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
search: { selectedTab: submenu.defaultTab } as any
});
};
diff --git a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/ProjectNavLink.tsx b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/ProjectNavLink.tsx
index e3b83db620..d001d4b4ed 100644
--- a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/ProjectNavLink.tsx
+++ b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/ProjectNavLink.tsx
@@ -105,15 +105,12 @@ export const ProjectNavLink = ({
tooltip={item.label}
>
<Link
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
to={
isOrgScoped
? (`/organizations/$orgId/${typePath}/${item.pathSuffix}` as any)
: (`/organizations/$orgId/projects/${typePath}/$projectId/${item.pathSuffix}` as any)
}
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
params={{ orgId: currentOrg.id, projectId: currentProject.id } as any}
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
search={item.search as any}
>
<item.icon className="size-4" />
diff --git a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/SubmenuViews.tsx b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/SubmenuViews.tsx
index 16670a197a..c1733ae4b6 100644
--- a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/SubmenuViews.tsx
+++ b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/SubmenuViews.tsx
@@ -72,15 +72,12 @@ export const ProjectSubmenuView = ({
tooltip={sub.label}
>
<Link
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
to={
isOrgScoped
? (`/organizations/$orgId/${typePath}/${submenu.pathSuffix}` as any)
: (`/organizations/$orgId/projects/${typePath}/$projectId/${submenu.pathSuffix}` as any)
}
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
params={{ orgId: currentOrg.id, projectId: currentProject.id } as any}
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
search={{ selectedTab: sub.tab } as any}
>
<sub.icon className="size-4" />
diff --git a/frontend/src/pages/admin/GeneralPage/components/GeneralPageForm.tsx b/frontend/src/pages/admin/GeneralPage/components/GeneralPageForm.tsx
index bb27444c9f..1d9a5ae5f7 100644
--- a/frontend/src/pages/admin/GeneralPage/components/GeneralPageForm.tsx
+++ b/frontend/src/pages/admin/GeneralPage/components/GeneralPageForm.tsx
@@ -120,7 +120,6 @@ const SignUpSettingsCard = ({ allowSignUp, allowedSignUpDomain }: SignUpSettings
} = useForm<TSignUpForm>({
resolver: zodResolver(signUpFormSchema),
defaultValues: {
- // eslint-disable-next-line
signUpMode: allowSignUp ? SignUpModes.Anyone : SignUpModes.Disabled,
allowedSignUpDomain
}
@@ -128,7 +127,6 @@ const SignUpSettingsCard = ({ allowSignUp, allowedSignUpDomain }: SignUpSettings
useEffect(() => {
reset({
- // eslint-disable-next-line
signUpMode: allowSignUp ? SignUpModes.Anyone : SignUpModes.Disabled,
allowedSignUpDomain
});
diff --git a/frontend/src/pages/agent-vault/AgentVaultOAuthCallbackPage/AgentVaultOAuthCallbackPage.tsx b/frontend/src/pages/agent-vault/AgentVaultOAuthCallbackPage/AgentVaultOAuthCallbackPage.tsx
index b4b78c152d..ed09d9f45e 100644
--- a/frontend/src/pages/agent-vault/AgentVaultOAuthCallbackPage/AgentVaultOAuthCallbackPage.tsx
+++ b/frontend/src/pages/agent-vault/AgentVaultOAuthCallbackPage/AgentVaultOAuthCallbackPage.tsx
@@ -74,7 +74,6 @@ export const AgentVaultOAuthCallbackPage = () => {
})
.catch((err: unknown) => setOutcome({ status: "failed", message: failureMessage(err) }));
// Runs once: completing twice would exchange the same code twice.
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
useEffect(() => {
diff --git a/frontend/src/pages/agent-vault/AgentVaultVariablesPage/components/VariablesCard.tsx b/frontend/src/pages/agent-vault/AgentVaultVariablesPage/components/VariablesCard.tsx
index ddbdff10fc..6401546e95 100644
--- a/frontend/src/pages/agent-vault/AgentVaultVariablesPage/components/VariablesCard.tsx
+++ b/frontend/src/pages/agent-vault/AgentVaultVariablesPage/components/VariablesCard.tsx
@@ -150,7 +150,6 @@ const RevealableValue = ({ value }: { value?: string }) => {
wrapper.style.width = `${maskRef.current.scrollWidth}px`;
}
// Only the value entering or leaving matters here; isShown is read, not watched.
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [rendered]);
return (
diff --git a/frontend/src/pages/auth/SelectOrgPage/SelectOrgPage.tsx b/frontend/src/pages/auth/SelectOrgPage/SelectOrgPage.tsx
index edb333df6e..d5da1a0e90 100644
--- a/frontend/src/pages/auth/SelectOrgPage/SelectOrgPage.tsx
+++ b/frontend/src/pages/auth/SelectOrgPage/SelectOrgPage.tsx
@@ -330,7 +330,6 @@ export const SelectOrgPage = () => {
}, [autoSelectErrorMessage]);
// MFA challenge handed off by beforeLoad's auto-select
- // eslint-disable-next-line react-hooks/exhaustive-deps
useEffect(() => {
const rootOrg = orgs?.find((o) => o.id === orgId);
const subOrgParent = rootOrg
diff --git a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaModal.tsx b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaModal.tsx
index 461ce6610c..d27a38681d 100644
--- a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaModal.tsx
+++ b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaModal.tsx
@@ -419,7 +419,6 @@ export const ExternalCaModal = ({ popUp, handlePopUpToggle, onComplete }: Props)
if (popUp?.ca?.isOpen && isEditMode && editType) {
reset(getInitialValuesForType(editType));
}
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [popUp?.ca?.isOpen, isEditMode]);
const { data: availableRoute53Connections, isPending: isRoute53Pending } =
diff --git a/frontend/src/pages/cert-manager/CertificatesPage/components/BasicConstraintsField.tsx b/frontend/src/pages/cert-manager/CertificatesPage/components/BasicConstraintsField.tsx
index d91dbd0538..82a49fe2fd 100644
--- a/frontend/src/pages/cert-manager/CertificatesPage/components/BasicConstraintsField.tsx
+++ b/frontend/src/pages/cert-manager/CertificatesPage/components/BasicConstraintsField.tsx
@@ -10,9 +10,7 @@ import {
} from "@app/components/v3";
type Props = {
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
control: Control<any>;
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
setValue: UseFormSetValue<any>;
isCA: boolean;
templateRequiresCA: boolean;
diff --git a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificatesTable.tsx b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificatesTable.tsx
index 33dd293c1c..d85dab7457 100644
--- a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificatesTable.tsx
+++ b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificatesTable.tsx
@@ -1,4 +1,3 @@
-/* eslint-disable no-nested-ternary */
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { subject } from "@casl/ability";
import { format } from "date-fns";
diff --git a/frontend/src/pages/cert-manager/CertificatesPage/components/RequestCustomExtensionsField.tsx b/frontend/src/pages/cert-manager/CertificatesPage/components/RequestCustomExtensionsField.tsx
index acc56dbdc4..45e20d9186 100644
--- a/frontend/src/pages/cert-manager/CertificatesPage/components/RequestCustomExtensionsField.tsx
+++ b/frontend/src/pages/cert-manager/CertificatesPage/components/RequestCustomExtensionsField.tsx
@@ -35,7 +35,6 @@ export type TRequestCustomExtension = {
};
type Props = {
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
control: Control<any>;
declarations: TProfileCustomExtension[];
policyRules?: TCustomExtensionRule[] | null;
diff --git a/frontend/src/pages/cert-manager/CertificatesPage/components/SubjectAttributesField.tsx b/frontend/src/pages/cert-manager/CertificatesPage/components/SubjectAttributesField.tsx
index b6029a0862..c7dea65fd6 100644
--- a/frontend/src/pages/cert-manager/CertificatesPage/components/SubjectAttributesField.tsx
+++ b/frontend/src/pages/cert-manager/CertificatesPage/components/SubjectAttributesField.tsx
@@ -43,7 +43,6 @@ const getSubjectAttributePlaceholder = (type: CertSubjectAttributeType): string
};
type SubjectAttributesFieldProps = {
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
control: Control<any>;
allowedAttributeTypes: CertSubjectAttributeType[];
error?: string;
diff --git a/frontend/src/pages/cert-manager/CertificatesPage/components/ValidityField.tsx b/frontend/src/pages/cert-manager/CertificatesPage/components/ValidityField.tsx
index 080f43724f..d78e6e12fb 100644
--- a/frontend/src/pages/cert-manager/CertificatesPage/components/ValidityField.tsx
+++ b/frontend/src/pages/cert-manager/CertificatesPage/components/ValidityField.tsx
@@ -6,7 +6,6 @@ import { Field, FieldDescription, FieldLabel, Input } from "@app/components/v3";
import { PolicyRowMessage } from "./PolicyRowMessage";
type Props = {
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
control: Control<any>;
label: string;
description?: ReactNode;
diff --git a/frontend/src/pages/cert-manager/CertificatesPage/components/usePolicyGuidance.ts b/frontend/src/pages/cert-manager/CertificatesPage/components/usePolicyGuidance.ts
index e7ffc91e30..a90e82d21a 100644
--- a/frontend/src/pages/cert-manager/CertificatesPage/components/usePolicyGuidance.ts
+++ b/frontend/src/pages/cert-manager/CertificatesPage/components/usePolicyGuidance.ts
@@ -34,9 +34,7 @@ const EMPTY_CUSTOM_EXTENSION_ROWS: { oid: string; value: string }[] = [];
type UsePolicyGuidanceParams = {
policy?: TCertificatePolicy | null;
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
watch: UseFormWatch<any>;
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
clearErrors: UseFormClearErrors<any>;
isSubjectSectionShown: boolean;
isSanSectionShown: boolean;
diff --git a/frontend/src/pages/cert-manager/DashboardPage/DashboardPage.tsx b/frontend/src/pages/cert-manager/DashboardPage/DashboardPage.tsx
index eef7f46b2f..096c916b9b 100644
--- a/frontend/src/pages/cert-manager/DashboardPage/DashboardPage.tsx
+++ b/frontend/src/pages/cert-manager/DashboardPage/DashboardPage.tsx
@@ -48,7 +48,6 @@ export const DashboardPage = () => {
navigate({
to: "/organizations/$orgId/cert-manager/inventory",
params: { orgId: currentProject?.orgId || "" },
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
search: filters as any
}),
[navigate, currentProject?.orgId]
diff --git a/frontend/src/pages/cert-manager/DashboardPage/components/inventory-link.ts b/frontend/src/pages/cert-manager/DashboardPage/components/inventory-link.ts
index 3773dfa892..1c6d1ab4fc 100644
--- a/frontend/src/pages/cert-manager/DashboardPage/components/inventory-link.ts
+++ b/frontend/src/pages/cert-manager/DashboardPage/components/inventory-link.ts
@@ -9,7 +9,6 @@ export const getInventoryLink = (
) => {
const pinnedLink = getInstancePinningLink(project.orgId, project, "inventory");
if (!pinnedLink) throw new Error("The inventory link needs a Certificate Manager project");
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
return { ...pinnedLink, search: filters as any };
};
diff --git a/frontend/src/pages/cert-manager/PoliciesPage/PoliciesPage.tsx b/frontend/src/pages/cert-manager/PoliciesPage/PoliciesPage.tsx
index a2225b0a01..0c24100006 100644
--- a/frontend/src/pages/cert-manager/PoliciesPage/PoliciesPage.tsx
+++ b/frontend/src/pages/cert-manager/PoliciesPage/PoliciesPage.tsx
@@ -102,7 +102,6 @@ export const PoliciesPage = () => {
const handleViewCertificateFromRequest = (certificateId: string) => {
setCertificateFilter({ search: certificateId });
navigate({
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
search: { selectedTab: TabSections.Certificates } as any
});
};
diff --git a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificatePoliciesTab/CreatePolicyModal.tsx b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificatePoliciesTab/CreatePolicyModal.tsx
index a9c6025232..43eecefb44 100644
--- a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificatePoliciesTab/CreatePolicyModal.tsx
+++ b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificatePoliciesTab/CreatePolicyModal.tsx
@@ -711,7 +711,6 @@ export const CertificatePolicyWizard = forwardRef<CertificatePolicyWizardHandle,
resetToggles();
}
setStep(0);
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [isEdit, policy, reset]);
const watchedAttributes = watch("attributes") || [];
diff --git a/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerPolicyModal/EditSignerPolicyModal.tsx b/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerPolicyModal/EditSignerPolicyModal.tsx
index b134eca7d8..b16d7b437a 100644
--- a/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerPolicyModal/EditSignerPolicyModal.tsx
+++ b/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerPolicyModal/EditSignerPolicyModal.tsx
@@ -362,8 +362,7 @@ export const EditSignerPolicyModal = ({
: // eslint-disable-next-line no-nested-ternary
hasOverCommittedStep
? `Step ${firstOverCommittedStepIndex + 1}: required approvals can't exceed the number of approvers. Add a group to allow more.`
- : // eslint-disable-next-line no-nested-ternary
- steps.length === 0
+ : steps.length === 0
? "Approval is not configured"
: `${steps.length} step${steps.length === 1 ? "" : "s"} · ${totalApprovers} approver${
totalApprovers === 1 ? "" : "s"
diff --git a/frontend/src/pages/cert-manager/SignerDetailPage/components/PreApproveSigningSheet.tsx b/frontend/src/pages/cert-manager/SignerDetailPage/components/PreApproveSigningSheet.tsx
index 1532722c48..e52646a7e6 100644
--- a/frontend/src/pages/cert-manager/SignerDetailPage/components/PreApproveSigningSheet.tsx
+++ b/frontend/src/pages/cert-manager/SignerDetailPage/components/PreApproveSigningSheet.tsx
@@ -129,7 +129,6 @@ export const PreApproveSigningSheet = ({ isOpen, onOpenChange, signerId }: Props
useEffect(() => {
if (!isOpen) reset(buildDefaults());
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [maxSignings, maxWindowDuration]);
const close = () => {
diff --git a/frontend/src/pages/cert-manager/SignerDetailPage/components/RequestToSignSheet.tsx b/frontend/src/pages/cert-manager/SignerDetailPage/components/RequestToSignSheet.tsx
index df93a1fd38..22033b39b0 100644
--- a/frontend/src/pages/cert-manager/SignerDetailPage/components/RequestToSignSheet.tsx
+++ b/frontend/src/pages/cert-manager/SignerDetailPage/components/RequestToSignSheet.tsx
@@ -86,7 +86,6 @@ export const RequestToSignSheet = ({ isOpen, onOpenChange, signerId }: Props) =>
useEffect(() => {
if (!isOpen) reset(buildDefaults());
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [maxSignings, maxWindowDuration]);
const handleClose = (open: boolean) => {
diff --git a/frontend/src/pages/cert-manager/cert-manager-link.ts b/frontend/src/pages/cert-manager/cert-manager-link.ts
index 2d9301d040..1983e339ee 100644
--- a/frontend/src/pages/cert-manager/cert-manager-link.ts
+++ b/frontend/src/pages/cert-manager/cert-manager-link.ts
@@ -8,6 +8,5 @@ export const getCertManagerLink = (
) => {
const pinnedLink = getInstancePinningLink(project.orgId, project, path);
if (!pinnedLink) throw new Error("The link needs a Certificate Manager project");
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
return { ...pinnedLink, search: search as any };
};
diff --git a/frontend/src/pages/cert-manager/components/DigiCertExistingOrderField.tsx b/frontend/src/pages/cert-manager/components/DigiCertExistingOrderField.tsx
index 27c2a424d4..f71d375e21 100644
--- a/frontend/src/pages/cert-manager/components/DigiCertExistingOrderField.tsx
+++ b/frontend/src/pages/cert-manager/components/DigiCertExistingOrderField.tsx
@@ -25,7 +25,6 @@ export const isUsingExistingCertificate = (data: {
}) => Boolean(data.externalOrderId) && data.externalOrderMode === ExternalOrderMode.UseExisting;
type DigiCertExistingOrderFieldProps = {
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
form: UseFormReturn<any>;
digicert: { appConnectionId: string; organizationId: number; productNameId: string };
};
diff --git a/frontend/src/pages/cert-manager/components/SignerKeyStep.tsx b/frontend/src/pages/cert-manager/components/SignerKeyStep.tsx
index 584e3eebb0..b76a941c97 100644
--- a/frontend/src/pages/cert-manager/components/SignerKeyStep.tsx
+++ b/frontend/src/pages/cert-manager/components/SignerKeyStep.tsx
@@ -46,7 +46,6 @@ const formatHsmKeyOption = (key: THsmConnectorKey) =>
export type HsmConnectorOption = { id: string; name: string; slotLabel: string };
type SignerKeyStepProps = {
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
control: Control<any>;
requiresHsm: boolean;
hsmConnectorOptions: HsmConnectorOption[];
@@ -117,7 +116,6 @@ export const SignerKeyStep = ({
isHsmKeyLookupFetching || (Boolean(hsmConnectorId) && debouncedKeyLabel !== typedKeyLabel);
useEffect(() => {
hsmKeyUnresolvedField.onChange(isHsmKeyLookupPending || matchingHsmKeys?.length === 0);
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [isHsmKeyLookupPending, matchingHsmKeys]);
useEffect(() => {
@@ -129,7 +127,6 @@ export const SignerKeyStep = ({
} else if (!keys.some((key) => key.keyId === hsmKeyIdField.value)) {
hsmKeyIdField.onChange("");
}
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [matchingHsmKeys]);
let hsmKeyLookupHint = "The label of the certificate's private key on the HSM.";
@@ -176,7 +173,6 @@ export const SignerKeyStep = ({
) {
keyAlgorithmField.onChange(algorithmOptions[0]);
}
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [
isHsm,
minRsaKeyBits,
diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AzureClientSecretsConnectionForm.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AzureClientSecretsConnectionForm.tsx
index 9b87e525c2..9702467619 100644
--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AzureClientSecretsConnectionForm.tsx
+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AzureClientSecretsConnectionForm.tsx
@@ -1,4 +1,3 @@
-/* eslint-disable no-case-declarations */
import crypto from "crypto";
import { useState } from "react";
import { Controller, FormProvider, useForm } from "react-hook-form";
diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/GitHubConnectionForm.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/GitHubConnectionForm.tsx
index 7f8d3f4dd9..d803ac555d 100644
--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/GitHubConnectionForm.tsx
+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/GitHubConnectionForm.tsx
@@ -253,7 +253,6 @@ export const GitHubConnectionForm = ({ appConnection, projectId, onSubmit }: Pro
localStorage.removeItem(GITHUB_CONNECTION_FORM_STORAGE_KEY);
}
// run once on mount
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
// Resolve the pending (newly created) app to the loaded list, then select it.
diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionRow.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionRow.tsx
index 06431b4e0e..6f7c1da001 100644
--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionRow.tsx
+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionRow.tsx
@@ -100,7 +100,6 @@ export const AppConnectionRow = ({
const timer = setTimeout(() => setIsIdCopied.off(), 2000);
- // eslint-disable-next-line consistent-return
return () => clearTimeout(timer);
}, [isIdCopied]);
diff --git a/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/components/AuditLogStreamTable.tsx b/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/components/AuditLogStreamTable.tsx
index 6904e7af08..7f1a14a03c 100644
--- a/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/components/AuditLogStreamTable.tsx
+++ b/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/components/AuditLogStreamTable.tsx
@@ -269,7 +269,6 @@ export const AuditLogStreamTable = () => {
<TableBody>
{isPending &&
Array.from({ length: 5 }).map((_, i) => (
- // eslint-disable-next-line react/no-array-index-key
<TableRow key={`log-stream-skeleton-${i + 1}`}>
<TableCell>
<Skeleton className="h-4 w-full" />
diff --git a/frontend/src/pages/organization/AuditLogsPage/components/LogsFilter.tsx b/frontend/src/pages/organization/AuditLogsPage/components/LogsFilter.tsx
index 952da261fb..b59b0b9e68 100644
--- a/frontend/src/pages/organization/AuditLogsPage/components/LogsFilter.tsx
+++ b/frontend/src/pages/organization/AuditLogsPage/components/LogsFilter.tsx
@@ -1,4 +1,3 @@
-/* eslint-disable no-nested-ternary */
import { useMemo } from "react";
import { Controller, useForm } from "react-hook-form";
import { zodResolver } from "@hookform/resolvers/zod";
diff --git a/frontend/src/pages/organization/AuditLogsPage/components/LogsTable.tsx b/frontend/src/pages/organization/AuditLogsPage/components/LogsTable.tsx
index 804e15680a..7935fad630 100644
--- a/frontend/src/pages/organization/AuditLogsPage/components/LogsTable.tsx
+++ b/frontend/src/pages/organization/AuditLogsPage/components/LogsTable.tsx
@@ -104,7 +104,6 @@ export const LogsTable = ({ filter, refetchInterval, timezone }: Props) => {
))}
{isPending &&
Array.from({ length: 8 }).map((_, i) => (
- // eslint-disable-next-line react/no-array-index-key
<TableRow key={`logs-skeleton-${i + 1}`}>
<TableCell>
<Skeleton className="h-4 w-full" />
diff --git a/frontend/src/pages/organization/BillingV2Page/BillingV2Page.tsx b/frontend/src/pages/organization/BillingV2Page/BillingV2Page.tsx
index ea756394f1..ffb6b6a3ba 100644
--- a/frontend/src/pages/organization/BillingV2Page/BillingV2Page.tsx
+++ b/frontend/src/pages/organization/BillingV2Page/BillingV2Page.tsx
@@ -181,7 +181,6 @@ export const BillingV2Page = () => {
createNotification({ type: "info", text: "Checkout was canceled." });
}
window.history.replaceState({}, "", window.location.pathname);
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
// An instance admin can point the page at an organization they are not a member of, which the
diff --git a/frontend/src/pages/organization/BillingV2Page/components/ActivateView.tsx b/frontend/src/pages/organization/BillingV2Page/components/ActivateView.tsx
index 79d20cfbab..2cf6e907d6 100644
--- a/frontend/src/pages/organization/BillingV2Page/components/ActivateView.tsx
+++ b/frontend/src/pages/organization/BillingV2Page/components/ActivateView.tsx
@@ -169,7 +169,6 @@ export const ActivateView = ({
});
}, 400);
return () => clearTimeout(timeout);
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [orgId, prod.id, plan.tier, cadence, quantitiesKey]);
// Both figures come from the preview. "Charged today" differs by path: adding to a live subscription
diff --git a/frontend/src/pages/organization/BillingV2Page/components/CommitmentView.tsx b/frontend/src/pages/organization/BillingV2Page/components/CommitmentView.tsx
index 5061cb070f..17e0f12930 100644
--- a/frontend/src/pages/organization/BillingV2Page/components/CommitmentView.tsx
+++ b/frontend/src/pages/organization/BillingV2Page/components/CommitmentView.tsx
@@ -124,7 +124,6 @@ export const CommitmentView = ({
preview.mutate({ orgId, commitmentChanges: changes });
}, 500);
return () => clearTimeout(timeout);
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [orgId, changesKey]);
// Current annual commitment total (committed × annual rate) and the current monthly on-demand spend,
diff --git a/frontend/src/pages/organization/BillingV2Page/components/RemoveProductModal.tsx b/frontend/src/pages/organization/BillingV2Page/components/RemoveProductModal.tsx
index a1c985d4b9..4933c82a2e 100644
--- a/frontend/src/pages/organization/BillingV2Page/components/RemoveProductModal.tsx
+++ b/frontend/src/pages/organization/BillingV2Page/components/RemoveProductModal.tsx
@@ -53,7 +53,6 @@ export const RemoveProductModal = ({ orgId, product, onClose, onRemoved }: Props
return;
}
preview.mutate({ orgId, removeProductId: product.id });
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [orgId, product.id, isOnlyProduct]);
const handleRemove = () => removeProduct.mutateAsync({ orgId, productId: product.id });
diff --git a/frontend/src/pages/organization/IntegrationsPage/route.tsx b/frontend/src/pages/organization/IntegrationsPage/route.tsx
index 86cd533d20..e7350b2116 100644
--- a/frontend/src/pages/organization/IntegrationsPage/route.tsx
+++ b/frontend/src/pages/organization/IntegrationsPage/route.tsx
@@ -37,7 +37,6 @@ export const Route = createFileRoute(
throw redirect({
to: "/organizations/$orgId/oauth-applications",
params: { orgId: params.orgId }
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
} as any);
}
}
diff --git a/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/components/KmipServerAuthMethod/KmipServerAuthMethodModal.tsx b/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/components/KmipServerAuthMethod/KmipServerAuthMethodModal.tsx
index f2b98bc0e5..d5f184b9f0 100644
--- a/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/components/KmipServerAuthMethod/KmipServerAuthMethodModal.tsx
+++ b/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/components/KmipServerAuthMethod/KmipServerAuthMethodModal.tsx
@@ -92,7 +92,6 @@ export const KmipServerAuthMethodModal = ({
useEffect(() => {
if (isOpen) reset(toFormDefaults(currentMethod));
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [isOpen]);
const method = watch("method");
diff --git a/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/components/KmipServerCertConfig/KmipServerCertConfigModal.tsx b/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/components/KmipServerCertConfig/KmipServerCertConfigModal.tsx
index 610fd6a14b..7a3e0cd749 100644
--- a/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/components/KmipServerCertConfig/KmipServerCertConfigModal.tsx
+++ b/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/components/KmipServerCertConfig/KmipServerCertConfigModal.tsx
@@ -66,7 +66,6 @@ export const KmipServerCertConfigModal = ({ isOpen, onOpenChange, kmipServer }:
useEffect(() => {
if (isOpen) reset(toFormDefaults(kmipServer));
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [isOpen]);
const onSubmit = async (form: FormData) => {
diff --git a/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayAuthMethod/EnrollmentTokenDialog.tsx b/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayAuthMethod/EnrollmentTokenDialog.tsx
index 6f80cd6302..05dfcb9fce 100644
--- a/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayAuthMethod/EnrollmentTokenDialog.tsx
+++ b/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayAuthMethod/EnrollmentTokenDialog.tsx
@@ -49,7 +49,6 @@ export const EnrollmentTokenContent = ({
useEffect(() => {
setCommandRelay(relay);
// A newly minted token commits the currently selected relay to the displayed command.
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [enrollmentToken]);
const isCommandDirty = !isDirect && relay.id !== commandRelay.id;
diff --git a/frontend/src/pages/organization/NetworkingPage/components/NetworkingAuthMethodForm.tsx b/frontend/src/pages/organization/NetworkingPage/components/NetworkingAuthMethodForm.tsx
index 14d00f7a87..94406079a3 100644
--- a/frontend/src/pages/organization/NetworkingPage/components/NetworkingAuthMethodForm.tsx
+++ b/frontend/src/pages/organization/NetworkingPage/components/NetworkingAuthMethodForm.tsx
@@ -294,7 +294,6 @@ export const NetworkingAuthMethodForm = ({
useEffect(() => {
reset(defaultValues);
// The individual method values below are the server-backed reset boundary.
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [
currentMethod.method,
initialAws?.allowedPrincipalArns,
diff --git a/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/honey-token-config/HoneyTokenModal.tsx b/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/honey-token-config/HoneyTokenModal.tsx
index 4237d9d22b..53e5b7d5eb 100644
--- a/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/honey-token-config/HoneyTokenModal.tsx
+++ b/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/honey-token-config/HoneyTokenModal.tsx
@@ -137,7 +137,7 @@ export const HoneyTokenModal = ({ isOpen, onOpenChange }: Props) => {
awsRegion: DEFAULT_AWS_REGION
});
}
- }, [isOpen]); // eslint-disable-line react-hooks/exhaustive-deps
+ }, [isOpen]);
const webhookSigningKey = watch("webhookSigningKey");
const stackName = watch("stackName");
diff --git a/frontend/src/pages/organization/RoleByIDPage/components/OrgRoleModifySection.utils.ts b/frontend/src/pages/organization/RoleByIDPage/components/OrgRoleModifySection.utils.ts
index a8d4ee4219..c86f6c4057 100644
--- a/frontend/src/pages/organization/RoleByIDPage/components/OrgRoleModifySection.utils.ts
+++ b/frontend/src/pages/organization/RoleByIDPage/components/OrgRoleModifySection.utils.ts
@@ -1,4 +1,3 @@
-/* eslint-disable no-param-reassign */
import { z } from "zod";
import { OrgPermissionSubjects } from "@app/context";
@@ -311,7 +310,6 @@ export type TFormSchema = z.infer<typeof formSchema>;
export type TPermissionsKey = keyof NonNullable<TFormSchema["permissions"]>;
export const rolePermission2Form = (permissions: TPermission[] = []) => {
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
const formVal: Record<string, any> = {};
permissions.forEach((permission) => {
const actions = Array.isArray(permission.action) ? permission.action : [permission.action];
diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgEncryptionTab/GcpKmsForm.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgEncryptionTab/GcpKmsForm.tsx
index f7d113d207..88e175764b 100644
--- a/frontend/src/pages/organization/SettingsPage/components/OrgEncryptionTab/GcpKmsForm.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/OrgEncryptionTab/GcpKmsForm.tsx
@@ -413,7 +413,6 @@ export const GcpKmsForm = ({
keyLookupRequestId.current += 1;
};
// Fetch once when the selected KMS changes. Form callbacks intentionally stay out of this dependency list.
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [kms?.id, mode]);
const credentialFileField = (
diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgOauthClientsTab/OauthClientModal.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgOauthClientsTab/OauthClientModal.tsx
index 9613127663..7c60a732e8 100644
--- a/frontend/src/pages/organization/SettingsPage/components/OrgOauthClientsTab/OauthClientModal.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/OrgOauthClientsTab/OauthClientModal.tsx
@@ -229,7 +229,6 @@ export const OauthClientModal = ({ popUp, handlePopUpClose, onCreated }: Props)
tokenExchangeAudience: client?.tokenExchangeAudience ?? "",
tokenExchangeIdpSatisfiesMfa: client?.tokenExchangeIdpSatisfiesMfa ?? false
});
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [isSheetOpen]);
const { mutateAsync: createOauthClient, isPending: isCreating } = useCreateOauthClient();
diff --git a/frontend/src/pages/organization/SettingsPage/route.tsx b/frontend/src/pages/organization/SettingsPage/route.tsx
index f63f5b9ae9..f7d92d7d5e 100644
--- a/frontend/src/pages/organization/SettingsPage/route.tsx
+++ b/frontend/src/pages/organization/SettingsPage/route.tsx
@@ -54,7 +54,6 @@ export const Route = createFileRoute(
to: moved.to,
params: { orgId: params.orgId },
search: { selectedTab: moved.selectedTab }
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
} as any);
}
}
diff --git a/frontend/src/pages/pam/PamAccountAccessPage/useRdpSession.ts b/frontend/src/pages/pam/PamAccountAccessPage/useRdpSession.ts
index 9f913c0b31..5782525a25 100644
--- a/frontend/src/pages/pam/PamAccountAccessPage/useRdpSession.ts
+++ b/frontend/src/pages/pam/PamAccountAccessPage/useRdpSession.ts
@@ -181,7 +181,6 @@ export const useRdpSession = ({
await sessionInfo.run();
})
.catch((err) => {
- // eslint-disable-next-line no-console
console.error("RDP session failed:", err);
if (!isCurrent()) return;
setError(RDP_SESSION_FAILED_MESSAGE);
@@ -222,7 +221,6 @@ export const useRdpSession = ({
teardown();
removeInnerHeightOverride();
};
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
const disconnect = useCallback(() => {
diff --git a/frontend/src/pages/pam/PamAccountAccessPage/useWebAccessSession.ts b/frontend/src/pages/pam/PamAccountAccessPage/useWebAccessSession.ts
index c3d647dc82..d3c56a527d 100644
--- a/frontend/src/pages/pam/PamAccountAccessPage/useWebAccessSession.ts
+++ b/frontend/src/pages/pam/PamAccountAccessPage/useWebAccessSession.ts
@@ -142,7 +142,7 @@ export const useWebAccessSession = ({
if (longestLine <= terminal.cols) return;
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, no-underscore-dangle
+ // eslint-disable-next-line no-underscore-dangle
const cellWidth = (terminal as any)._core._renderService.dimensions.css.cell.width as number;
if (!cellWidth) return;
diff --git a/frontend/src/pages/pam/PamApprovalRequestsPage/PamApprovalRequestsPage.tsx b/frontend/src/pages/pam/PamApprovalRequestsPage/PamApprovalRequestsPage.tsx
index 1a7693befa..32492b427c 100644
--- a/frontend/src/pages/pam/PamApprovalRequestsPage/PamApprovalRequestsPage.tsx
+++ b/frontend/src/pages/pam/PamApprovalRequestsPage/PamApprovalRequestsPage.tsx
@@ -185,7 +185,6 @@ export const PamApprovalRequestsPage = () => {
const rest = Object.fromEntries(
Object.entries(searchParams).filter(([k]) => k !== "requestId")
);
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
navigate({ search: rest as any, replace: true });
};
diff --git a/frontend/src/pages/pam/PamDataExplorerPage/PamDataExplorerPage.tsx b/frontend/src/pages/pam/PamDataExplorerPage/PamDataExplorerPage.tsx
index df26aaf188..62710a1e4d 100644
--- a/frontend/src/pages/pam/PamDataExplorerPage/PamDataExplorerPage.tsx
+++ b/frontend/src/pages/pam/PamDataExplorerPage/PamDataExplorerPage.tsx
@@ -164,7 +164,6 @@ export const PamDataExplorerPage = ({ reason, mfaSessionId }: Props = {}) => {
return () => {
disconnect();
};
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
const loadTables = useCallback(
@@ -255,7 +254,6 @@ export const PamDataExplorerPage = ({ reason, mfaSessionId }: Props = {}) => {
if (!isConnected) {
wasConnectedRef.current = false;
}
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [isConnected]);
const handleSchemaChange = useCallback(
diff --git a/frontend/src/pages/pam/PamDataExplorerPage/components/DataExplorerRowEditor.tsx b/frontend/src/pages/pam/PamDataExplorerPage/components/DataExplorerRowEditor.tsx
index 40da8c1b21..213df29d3f 100644
--- a/frontend/src/pages/pam/PamDataExplorerPage/components/DataExplorerRowEditor.tsx
+++ b/frontend/src/pages/pam/PamDataExplorerPage/components/DataExplorerRowEditor.tsx
@@ -82,7 +82,6 @@ export const DataExplorerRowEditor = ({
return (
<div key={col.name}>
<div className="mb-1 flex items-center gap-2">
- {/* eslint-disable-next-line jsx-a11y/label-has-associated-control */}
<label
htmlFor={`row-editor-${col.name}`}
className="text-xs font-medium text-foreground"
diff --git a/frontend/src/pages/pam/PamDataExplorerPage/components/SqlEditor.tsx b/frontend/src/pages/pam/PamDataExplorerPage/components/SqlEditor.tsx
index ab795d7e7e..21836da863 100644
--- a/frontend/src/pages/pam/PamDataExplorerPage/components/SqlEditor.tsx
+++ b/frontend/src/pages/pam/PamDataExplorerPage/components/SqlEditor.tsx
@@ -168,7 +168,6 @@ export function SqlEditor({
view.destroy();
viewRef.current = null;
};
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
return <div ref={containerRef} className="h-full w-full" />;
diff --git a/frontend/src/pages/pam/PamDiscoveryPage/components/DiscoverySourceDetailSheet.tsx b/frontend/src/pages/pam/PamDiscoveryPage/components/DiscoverySourceDetailSheet.tsx
index 456e663fce..74d74d6a0d 100644
--- a/frontend/src/pages/pam/PamDiscoveryPage/components/DiscoverySourceDetailSheet.tsx
+++ b/frontend/src/pages/pam/PamDiscoveryPage/components/DiscoverySourceDetailSheet.tsx
@@ -192,7 +192,6 @@ const ActiveDirectoryConfigForm = ({
useEffect(() => {
reset(defaults);
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [source, reset]);
const onSubmit = (data: z.infer<typeof activeDirectoryConfigSchema>) => {
@@ -282,7 +281,6 @@ const HostRangeConfigForm = ({
useEffect(() => {
reset(defaults);
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [source, reset]);
const onSubmit = (data: z.infer<typeof hostRangeConfigSchema>) => {
diff --git a/frontend/src/pages/pam/PamSessionsPage/components/RdpReplayView/RdpReplayView.tsx b/frontend/src/pages/pam/PamSessionsPage/components/RdpReplayView/RdpReplayView.tsx
index fe7880dbf4..796f9ebcf8 100644
--- a/frontend/src/pages/pam/PamSessionsPage/components/RdpReplayView/RdpReplayView.tsx
+++ b/frontend/src/pages/pam/PamSessionsPage/components/RdpReplayView/RdpReplayView.tsx
@@ -127,7 +127,6 @@ export const RdpReplayView = ({ events, isStreaming = false, totalDurationMs }:
}
lastParsedIndexRef.current = 0;
};
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
useEffect(() => {
@@ -158,7 +157,6 @@ export const RdpReplayView = ({ events, isStreaming = false, totalDurationMs }:
useEffect(() => {
writeProgress(currentMsRef.current);
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [totalMs]);
const onPlayPause = () => {
diff --git a/frontend/src/pages/pam/PamSessionsPage/components/RdpReplayView/rdpReplayPlayer.ts b/frontend/src/pages/pam/PamSessionsPage/components/RdpReplayView/rdpReplayPlayer.ts
index 87cd96379f..347acdd396 100644
--- a/frontend/src/pages/pam/PamSessionsPage/components/RdpReplayView/rdpReplayPlayer.ts
+++ b/frontend/src/pages/pam/PamSessionsPage/components/RdpReplayView/rdpReplayPlayer.ts
@@ -201,7 +201,6 @@ export class RdpReplayPlayer {
try {
this.apply(this.events[this.index]);
} catch (err) {
- // eslint-disable-next-line no-console
console.warn("RDP replay: apply failed, skipping event", err);
}
this.index += 1;
diff --git a/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupDetailsSection.tsx b/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupDetailsSection.tsx
index 2d7fed6305..7249e67395 100644
--- a/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupDetailsSection.tsx
+++ b/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupDetailsSection.tsx
@@ -32,7 +32,7 @@ export const GroupDetailsSection = ({ groupMembership }: Props) => {
const { currentProject } = useProject();
const projectLabel = getProjectLabel(currentProject?.type);
- // eslint-disable-next-line @typescript-eslint/naming-convention,@typescript-eslint/no-unused-vars
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
const [_, isCopyingId, setCopyTextId] = useTimedReset<string>({
initialState: "Copy ID to clipboard"
});
diff --git a/frontend/src/pages/project/IdentityDetailsByIDPage/components/ProjectIdentityDetailsSection.tsx b/frontend/src/pages/project/IdentityDetailsByIDPage/components/ProjectIdentityDetailsSection.tsx
index 921ca25024..e221de2a63 100644
--- a/frontend/src/pages/project/IdentityDetailsByIDPage/components/ProjectIdentityDetailsSection.tsx
+++ b/frontend/src/pages/project/IdentityDetailsByIDPage/components/ProjectIdentityDetailsSection.tsx
@@ -74,7 +74,7 @@ export const ProjectIdentityDetailsSection = ({
joinedLabel = "Joined Agent Vault";
}
- // eslint-disable-next-line @typescript-eslint/naming-convention,@typescript-eslint/no-unused-vars
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
const [_, isCopyingId, setCopyTextId] = useTimedReset<string>({
initialState: "Copy ID to clipboard"
});
diff --git a/frontend/src/pages/project/MemberDetailsByIDPage/components/ProjectMemberDetailsSection.tsx b/frontend/src/pages/project/MemberDetailsByIDPage/components/ProjectMemberDetailsSection.tsx
index 32b8820b4e..1730178d87 100644
--- a/frontend/src/pages/project/MemberDetailsByIDPage/components/ProjectMemberDetailsSection.tsx
+++ b/frontend/src/pages/project/MemberDetailsByIDPage/components/ProjectMemberDetailsSection.tsx
@@ -29,12 +29,12 @@ export const ProjectMemberDetailsSection = ({ membership }: Props) => {
const { currentProject } = useProject();
const projectLabel = getProjectLabel(currentProject?.type);
- // eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/naming-convention
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
const [_copyId, isCopyingId, setCopyTextId] = useTimedReset<string>({
initialState: "Copy ID to clipboard"
});
- // eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/naming-convention
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
const [_copyEmail, isCopyingEmail, setCopyEmail] = useTimedReset<string>({
initialState: "Copy email to clipboard"
});
diff --git a/frontend/src/pages/project/RoleDetailsBySlugPage/components/GeneralPermissionPolicies.tsx b/frontend/src/pages/project/RoleDetailsBySlugPage/components/GeneralPermissionPolicies.tsx
index 1f9648fff3..637b5c8c6e 100644
--- a/frontend/src/pages/project/RoleDetailsBySlugPage/components/GeneralPermissionPolicies.tsx
+++ b/frontend/src/pages/project/RoleDetailsBySlugPage/components/GeneralPermissionPolicies.tsx
@@ -71,7 +71,6 @@ type ActionsMultiSelectProps = {
rootIndex: number;
actions: readonly TPermissionAction[];
isDisabled?: boolean;
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
control: Control<any>;
menuPortalContainerRef?: RefObject<HTMLElement | null>;
subjectScope: PermissionScope;
@@ -234,16 +233,13 @@ export const GeneralPermissionPolicies = <T extends AnyPermissionSubject>({
menuPortalContainerRef,
subjectScope
}: Props<T>) => {
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
const { control, watch } = useFormContext<any>();
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
const { fields, remove, insert } = useFieldArray<any>({
control,
name: `permissions.${subject}`
});
// scott: this is a hacky work-around to resolve bug of fields not updating UI when removed
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
const watchFields = useWatch({ control, name: `permissions.${subject}` as any }) as unknown[];
const wasPresentRef = useRef(false);
const onPolicyAddedRef = useRef(onPolicyAdded);
diff --git a/frontend/src/pages/project/RoleDetailsBySlugPage/components/RolePermissionsSection.tsx b/frontend/src/pages/project/RoleDetailsBySlugPage/components/RolePermissionsSection.tsx
index c20b631a5b..1ecb2654ad 100644
--- a/frontend/src/pages/project/RoleDetailsBySlugPage/components/RolePermissionsSection.tsx
+++ b/frontend/src/pages/project/RoleDetailsBySlugPage/components/RolePermissionsSection.tsx
@@ -306,12 +306,9 @@ export const RolePermissionsSection = ({ roleSlug, isDisabled }: Props) => {
onRemoveLastRule={
!isDisabled
? () =>
- form.setValue(
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
- `permissions.${subject}` as any,
- [],
- { shouldDirty: true }
- )
+ form.setValue(`permissions.${subject}` as any, [], {
+ shouldDirty: true
+ })
: undefined
}
onShowAccessTree={
diff --git a/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/IntegrationSettingsSection.tsx b/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/IntegrationSettingsSection.tsx
index 4d2b2eec2f..4c16067572 100644
--- a/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/IntegrationSettingsSection.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/IntegrationSettingsSection.tsx
@@ -78,7 +78,6 @@ export const IntegrationSettingsSection = ({ integration }: Props) => {
return null;
}
- // eslint-disable-next-line no-nested-ternary
return (
<div className="w-full rounded-lg border border-border-control bg-surface-base p-4">
<div className="mb-4 flex items-center justify-between border-b border-border-emphasis pb-4">
diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/NativeIntegrationsCreationBlockedModal.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/NativeIntegrationsCreationBlockedModal.tsx
index f0ac5f6023..3cbfd3a562 100644
--- a/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/NativeIntegrationsCreationBlockedModal.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/NativeIntegrationsCreationBlockedModal.tsx
@@ -45,7 +45,6 @@ export const NativeIntegrationsCreationBlockedModal = ({ isOpen, onOpenChange }:
projectType: currentProject.type
});
}
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [isOpen]);
const handleGoToSecretSyncs = () => {
diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncRow.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncRow.tsx
index 27ba8fb769..4fabe4a3b0 100644
--- a/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncRow.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncRow.tsx
@@ -131,7 +131,6 @@ export const SecretSyncRow = ({
const timer = setTimeout(() => setIsIdCopied.off(), 2000);
- // eslint-disable-next-line consistent-return
return () => clearTimeout(timer);
}, [isIdCopied]);
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/InviteMembersModal/InviteMembersModal.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/InviteMembersModal/InviteMembersModal.tsx
index 669d124750..2268ef74c0 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/InviteMembersModal/InviteMembersModal.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/InviteMembersModal/InviteMembersModal.tsx
@@ -111,7 +111,6 @@ export const InviteMembersModal = ({ popUp, handlePopUpToggle, experimentVariant
baseEventProps
);
}
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [isOpen]);
const onInvite = async ({ emails, projectRole }: TInviteMembersForm) => {
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/InviteMembersNudge/InviteMembersNudge.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/InviteMembersNudge/InviteMembersNudge.tsx
index ff1de0d50d..2f6332359a 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/InviteMembersNudge/InviteMembersNudge.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/InviteMembersNudge/InviteMembersNudge.tsx
@@ -95,7 +95,6 @@ export const InviteMembersNudge = ({ popUp, handlePopUpToggle, isLifted = false
baseEventProps
);
}
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [isOpen]);
useEffect(() => {
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretDropzone/ImportSecretsModal.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretDropzone/ImportSecretsModal.tsx
index 5ccb645683..42da38b7b0 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretDropzone/ImportSecretsModal.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretDropzone/ImportSecretsModal.tsx
@@ -405,7 +405,6 @@ const ImportSecretsContent = ({
slugToTagId.set(result.value.slug, result.value.id);
} else {
skippedTagsCount += 1;
- // eslint-disable-next-line no-console
console.error(`Failed to create tag ${missingSlugs[idx]}`, result.reason);
}
});
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretDropzone/parseNestedJson.ts b/frontend/src/pages/secret-manager/OverviewPage/components/SecretDropzone/parseNestedJson.ts
index 1f81b3e62e..43e92c1dde 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretDropzone/parseNestedJson.ts
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretDropzone/parseNestedJson.ts
@@ -149,7 +149,6 @@ export const runNestedImport = async (
path === "/" || ["created", "found"].includes(outcomes.get(path)?.status ?? "");
// One at a time so parents always exist before their children
- // eslint-disable-next-line no-restricted-syntax
for (const path of folderPaths) {
if (!isFolderReady(getParentPath(path))) {
outcomes.set(path, { status: "skipped" });
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretAccessInsights.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretAccessInsights.tsx
index 6452ce292d..1596a465cd 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretAccessInsights.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretAccessInsights.tsx
@@ -613,7 +613,6 @@ export function SecretAccessInsights({ secretKey, environment, secretPath }: Pro
trackedSince: readActivity?.readsTrackedSince
};
// readStatusOf only reads readActivity and readActors, which are both listed.
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [
secretAccessList,
readActors,
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretEditTableRow.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretEditTableRow.tsx
index a70d7f30ec..2ae778a987 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretEditTableRow.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretEditTableRow.tsx
@@ -729,7 +729,6 @@ export const SecretEditTableRow = ({
clearTimeout(batchAutoApplyTimer.current);
}
};
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [isBatchMode, watchedValue, watchedKey, watchedComment, watchedTags, serializedMetadata]);
const findPendingChangeId = () =>
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretMetadataForm.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretMetadataForm.tsx
index e73dcc9c34..3672ba185d 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretMetadataForm.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretMetadataForm.tsx
@@ -119,7 +119,6 @@ export const SecretMetadataForm = ({
clearTimeout(debounceTimer.current);
}
};
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [isBatchMode, serializedMetadata, onMetadataChange]);
const onSubmit = async (data: TFormSchema) => {
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SelectionPanel/components/MoveSecretsDialog/MoveSecretsDialog.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SelectionPanel/components/MoveSecretsDialog/MoveSecretsDialog.tsx
index b189afbe63..c6417cd74b 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/SelectionPanel/components/MoveSecretsDialog/MoveSecretsDialog.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SelectionPanel/components/MoveSecretsDialog/MoveSecretsDialog.tsx
@@ -383,7 +383,6 @@ const DestinationPathField = ({
// Create each segment in order so a typed path such as /apps/api creates both levels.
// The get-or-create mutation keeps retries idempotent after a partial failure.
- // eslint-disable-next-line no-restricted-syntax
for await (const segment of getPathSegments(path)) {
const currentParentPath = parentPath;
const environmentsMissingSegment = missingCreationTargets
@@ -1014,7 +1013,6 @@ const SingleEnvContent = ({
const rotationFailures: { name: string; message: string }[] = [];
let rotationSuccessCount = 0;
- // eslint-disable-next-line no-restricted-syntax
for await (const rotation of rotationsToMove) {
try {
await moveSecretRotation.mutateAsync({
@@ -1041,7 +1039,6 @@ const SingleEnvContent = ({
let folderSuccessCount = 0;
let folderApprovalCount = 0;
- // eslint-disable-next-line no-restricted-syntax
for await (const folder of foldersToMove) {
try {
const result = await moveFolder.mutateAsync({
@@ -1461,7 +1458,6 @@ const MultiEnvContent = ({
})
);
- // eslint-disable-next-line no-restricted-syntax
for await (const environment of environments) {
const envSlug = environment.slug;
@@ -1542,7 +1538,6 @@ const MultiEnvContent = ({
}
}
- // eslint-disable-next-line no-restricted-syntax
for await (const rotation of rotationsToMove) {
try {
await moveSecretRotation.mutateAsync({
@@ -1577,7 +1572,6 @@ const MultiEnvContent = ({
}
}
- // eslint-disable-next-line no-restricted-syntax
for await (const folder of foldersToMove) {
try {
const { hasApprovalRequests } = await moveFolder.mutateAsync({
diff --git a/frontend/src/pages/secret-manager/SecretApprovalsPage/components/AccessApprovalRequest/AccessApprovalRequest.tsx b/frontend/src/pages/secret-manager/SecretApprovalsPage/components/AccessApprovalRequest/AccessApprovalRequest.tsx
index 2593eb0f58..f6aa4988d5 100644
--- a/frontend/src/pages/secret-manager/SecretApprovalsPage/components/AccessApprovalRequest/AccessApprovalRequest.tsx
+++ b/frontend/src/pages/secret-manager/SecretApprovalsPage/components/AccessApprovalRequest/AccessApprovalRequest.tsx
@@ -1,5 +1,3 @@
-/* eslint-disable no-nested-ternary */
-/* eslint-disable react/jsx-no-useless-fragment */
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { Link, useNavigate, useSearch } from "@tanstack/react-router";
import { format, formatDistance } from "date-fns";
diff --git a/frontend/src/pages/secret-manager/SecretApprovalsPage/components/SecretApprovalRequest/components/BulkReviewChangeRequestsSheet.tsx b/frontend/src/pages/secret-manager/SecretApprovalsPage/components/SecretApprovalRequest/components/BulkReviewChangeRequestsSheet.tsx
index d7ff443922..35b6bfc098 100644
--- a/frontend/src/pages/secret-manager/SecretApprovalsPage/components/SecretApprovalRequest/components/BulkReviewChangeRequestsSheet.tsx
+++ b/frontend/src/pages/secret-manager/SecretApprovalsPage/components/SecretApprovalRequest/components/BulkReviewChangeRequestsSheet.tsx
@@ -153,7 +153,6 @@ const BulkReviewChangeRequestsSheetContent = ({
});
});
return result;
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [requests, isLoadingDetails]);
const decidedCount = requests.filter(({ id }) => decisions[id]).length;
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/SecretMainPage.store.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/SecretMainPage.store.tsx
index 9f816ca95e..88f7a0228b 100644
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/SecretMainPage.store.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/SecretMainPage.store.tsx
@@ -1,4 +1,3 @@
-/* eslint-disable no-nested-ternary */
import { createContext, ReactNode, useContext, useEffect, useRef } from "react";
import { useRouter } from "@tanstack/react-router";
import { createStore, StateCreator, StoreApi, useStore } from "zustand";
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/CommitForm/CommitForm.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/CommitForm/CommitForm.tsx
index 1468e21715..9ad8d5ccb4 100644
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/CommitForm/CommitForm.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/CommitForm/CommitForm.tsx
@@ -51,7 +51,6 @@ interface CommitFormProps {
onReviewOpenChange?: (isOpen: boolean) => void;
}
-/* eslint-disable react/no-unused-prop-types */
type RenderResourceProps = {
onDiscard: () => void;
change: PendingChange;
@@ -61,7 +60,6 @@ type RenderResourceProps = {
isLoadingOldValue?: boolean;
isLoadingNewValue?: boolean;
};
-/* eslint-enable react/no-unused-prop-types */
const RenderSecretChanges = ({
onDiscard,
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/CollapsibleSecretImports.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/CollapsibleSecretImports.tsx
index 89c5e23479..50ad354071 100644
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/CollapsibleSecretImports.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/CollapsibleSecretImports.tsx
@@ -1,4 +1,3 @@
-/* eslint-disable no-nested-ternary */
import React, { useMemo } from "react";
import { AlertTriangleIcon, ImportIcon, KeyIcon, RefreshCwIcon } from "lucide-react";
diff --git a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncActionTriggers.tsx b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncActionTriggers.tsx
index abd083c3b4..c4d6cf2f57 100644
--- a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncActionTriggers.tsx
+++ b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncActionTriggers.tsx
@@ -81,7 +81,6 @@ export const SecretSyncActionTriggers = ({ secretSync, onEdit }: Props) => {
const timer = setTimeout(() => setIsIdCopied.off(), 2000);
- // eslint-disable-next-line consistent-return
return () => clearTimeout(timer);
}, [isIdCopied]);
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/SecretValidationRulesSection/SecretValidationRulesSection.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/SecretValidationRulesSection/SecretValidationRulesSection.tsx
index 6efa81ac15..890a2fdbb5 100644
--- a/frontend/src/pages/secret-manager/SettingsPage/components/SecretValidationRulesSection/SecretValidationRulesSection.tsx
+++ b/frontend/src/pages/secret-manager/SettingsPage/components/SecretValidationRulesSection/SecretValidationRulesSection.tsx
@@ -110,7 +110,6 @@ const ProviderMultiSelect = <T extends string>({
}: {
label: string;
options: TProviderOption<T>[];
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
control: any;
error?: string;
}) => {