Skip to content

Commit 431563f

Browse files
PR changes
1 parent 043eb7e commit 431563f

17 files changed

+35
-1
lines changed

eslint.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ const flat = typescriptEslint.config(
6363
"@typescript-eslint/no-array-constructor": "warn",
6464
"no-redeclare": "off",
6565
"@typescript-eslint/no-redeclare": "warn",
66-
"@typescript-eslint/no-explicit-any": "off",
6766
"no-use-before-define": "off",
6867
"@typescript-eslint/no-use-before-define": [
6968
"warn",

src/components/ControlPlane/MCPHealthPopoverButton.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ export default function MCPHealthPopoverButton({
2121

2222
const { t } = useTranslation();
2323

24+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2425
const handleOpenerClick = (e: any) => {
2526
if (popoverRef.current) {
27+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2628
const ref = popoverRef.current as any;
2729
ref.opener = e.target;
2830
setOpen((prev) => !prev);
@@ -34,6 +36,7 @@ export default function MCPHealthPopoverButton({
3436
Header: t('MCPHealthPopoverButton.statusHeader'),
3537
accessor: 'status',
3638
width: 50,
39+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
3740
Cell: (instance: any) => {
3841
const isReady = instance.cell.value === 'True';
3942
return (
@@ -59,6 +62,7 @@ export default function MCPHealthPopoverButton({
5962
{
6063
Header: t('MCPHealthPopoverButton.transitionHeader'),
6164
accessor: 'lastTransitionTime',
65+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
6266
Cell: (instance: any) => {
6367
return <ReactTimeAgo date={new Date(instance.cell.value)} />;
6468
},

src/components/ControlPlanes/ConnectButton.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ export default function ConnectButton(props: Props) {
2424
const navigate = useLuigiNavigate();
2525
const popoverRef = useRef(null);
2626
const [open, setOpen] = useState(false);
27+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2728
const handleOpenerClick = (e: any) => {
2829
if (popoverRef.current) {
30+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2931
const ref = popoverRef.current as any;
3032
ref.opener = e.target;
3133
setOpen((prev) => !prev);
@@ -40,8 +42,10 @@ export default function ConnectButton(props: Props) {
4042
if (res.isLoading) {
4143
return <></>;
4244
}
45+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
4346
const kubeconfig = yaml.load(res.data as string) as any;
4447

48+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
4549
const contexts = kubeconfig.contexts as any[];
4650
const currentContext = kubeconfig['current-context'];
4751
if (!currentContext) {
@@ -89,6 +93,7 @@ export default function ConnectButton(props: Props) {
8993
}
9094
}}
9195
>
96+
{/* eslint-disable-next-line @typescript-eslint/no-explicit-any */}
9297
{contexts.map((context: any) => (
9398
<MenuItem
9499
key={context.name}

src/components/ControlPlanes/CopyKubeconfigButton.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ export default function CopyKubeconfigButton() {
1212
const { show } = useToast();
1313
const { t } = useTranslation();
1414

15+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1516
const handleOpenerClick = (e: any) => {
1617
if (popoverRef.current) {
18+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1719
const ref = popoverRef.current as any;
1820
ref.opener = e.target;
1921
setOpen((prev) => !prev);
@@ -65,6 +67,7 @@ export default function CopyKubeconfigButton() {
6567
);
6668
}
6769

70+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
6871
export function DownloadKubeconfig(config: any, displayName: string) {
6972
const filename = 'kubeconfig-' + displayName + '.yaml';
7073

src/components/Core/IntelligentBreadcrumbs.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const PREFIX = '/mcp';
1414
function navigateFromBreadcrumbs(
1515
navigate: (to: string, options?: NavigateOptions) => void,
1616
) {
17+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1718
return (event: Ui5CustomEvent<BreadcrumbsDomRef, any>) => {
1819
event.preventDefault();
1920
// @ts-ignore

src/components/Dialogs/CreateProjectDialog.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { validationSchemaProjectWorkspace } from '../../lib/api/validations/sche
1212
import { CreateDialogProps } from './CreateWorkspaceDialogContainer.tsx';
1313

1414
export const CreateProjectWorkspaceDialogWrapper: React.FC<{
15+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1516
spyFormBody?: (data: any) => object;
1617
}> = ({ spyFormBody }) => {
1718
const [isOpen, setIsOpen] = useState(true);

src/components/Dialogs/DeleteConfirmationDialog.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export function DeleteConfirmationDialog({
4343
};
4444
}, [isOpen]);
4545

46+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
4647
const onConfirmationInputChange = (event: any) => {
4748
if (event.target.value === resourceName) {
4849
setConfirmed(true);

src/components/Helper/AnimatedHoverTextButton.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export function AnimatedHoverTextButton({
1515
}: {
1616
text: string;
1717
icon: JSX.Element;
18+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1819
onClick: (e: any) => void;
1920
}) {
2021
const [hover, setHover] = useState(false);

src/components/Members/MemberTable.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export const MemberTable: FC<MemberTableProps> = ({
3737
Header: '',
3838
accessor: '.',
3939
width: 50,
40+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
4041
Cell: (instance: any) => (
4142
<Button
4243
icon="delete"

src/components/Projects/ProjectsList.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default function ProjectsList() {
2727
{
2828
Header: t('ProjectsListView.title'),
2929
accessor: 'projectName',
30+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
3031
Cell: (instance: any) => (
3132
<div
3233
style={{
@@ -43,6 +44,7 @@ export default function ProjectsList() {
4344
{
4445
Header: 'Namespace',
4546
accessor: 'nameSpace',
47+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
4648
Cell: (instance: any) => (
4749
<div
4850
style={{
@@ -67,6 +69,7 @@ export default function ProjectsList() {
6769
};
6870
}) ?? []
6971
}
72+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
7073
onRowClick={(e: any) => {
7174
navigate(
7275
`/mcp/projects/${data ? [e.detail.row.values.projectName] : ''}`,

0 commit comments

Comments
 (0)