From b9b7f2ce07b2949ae5d09dcd0909f9cd31051b07 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 24 Jul 2026 04:08:02 +0000 Subject: [PATCH] fix(lint): baseline antd suppressions for new models-and-endpoints route files PR #34327 split the Models + Endpoints view into per-tab route pages. Three of the new files thinly wrap existing antd-based components and still need antd imports: models-and-endpoints/add/page.tsx (Form.useForm for AddModelTab) models-and-endpoints/llm-credentials/page.tsx (Form.useForm for CredentialsPanel) models-and-endpoints/vertexCredentialsUpload.ts (FormInstance/UploadProps types) Adjacent new files with antd imports from the same PR (layout.tsx, PriceDataManagementTab.tsx) were baselined in eslint-suppressions.json, but these three were missed, so the promote-to-main frontend-lint check on litellm_internal_staging fails with three no-restricted-imports errors. Add them to the suppressions baseline (via eslint --suppress-rule no-restricted-imports), matching the treatment of the other new files in the same route until the underlying components are migrated off antd. Co-authored-by: Krrish Dholakia --- ui/litellm-dashboard/eslint-suppressions.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ui/litellm-dashboard/eslint-suppressions.json b/ui/litellm-dashboard/eslint-suppressions.json index ec1e3ac05ba..f7d68096071 100644 --- a/ui/litellm-dashboard/eslint-suppressions.json +++ b/ui/litellm-dashboard/eslint-suppressions.json @@ -1124,6 +1124,11 @@ "count": 1 } }, + "src/app/(dashboard)/models-and-endpoints/add/page.tsx": { + "no-restricted-imports": { + "count": 1 + } + }, "src/app/(dashboard)/models-and-endpoints/components/ModelRetrySettingsTab.test.tsx": { "react/display-name": { "count": 1 @@ -1147,11 +1152,21 @@ "count": 1 } }, + "src/app/(dashboard)/models-and-endpoints/llm-credentials/page.tsx": { + "no-restricted-imports": { + "count": 1 + } + }, "src/app/(dashboard)/models-and-endpoints/utils/modelDataTransformer.ts": { "prefer-const": { "count": 6 } }, + "src/app/(dashboard)/models-and-endpoints/vertexCredentialsUpload.ts": { + "no-restricted-imports": { + "count": 1 + } + }, "src/app/(dashboard)/old-usage/_components/usage.tsx": { "local/filename-pascal-case": { "count": 1