diff --git a/spinifex/services/spinifexui/frontend/oxlint.config.ts b/spinifex/services/spinifexui/frontend/oxlint.config.ts index a5f46d18f..0e1e5911f 100644 --- a/spinifex/services/spinifexui/frontend/oxlint.config.ts +++ b/spinifex/services/spinifexui/frontend/oxlint.config.ts @@ -45,6 +45,7 @@ export default defineConfig({ "error", { namedComponents: "function-declaration" }, ], + "react/no-array-index-key": "error", "react/jsx-handler-names": "off", "react/todo": "off", "react-you-might-not-need-an-effect/no-event-handler": "error", diff --git a/spinifex/services/spinifexui/frontend/src/components/cli-command-panel.tsx b/spinifex/services/spinifexui/frontend/src/components/cli-command-panel.tsx index 39fd673a7..897f9b6b6 100644 --- a/spinifex/services/spinifexui/frontend/src/components/cli-command-panel.tsx +++ b/spinifex/services/spinifexui/frontend/src/components/cli-command-panel.tsx @@ -127,6 +127,7 @@ export function CliCommandPanel({ commands }: CliCommandPanelProps) {
{cmd.parts.map((part, j) => (
+ // oxlint-disable-next-line no-array-index-key -- positional tokens of one command, never reordered
{part.value}
diff --git a/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(load-balancers)/-components/create-load-balancer-page.tsx b/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(load-balancers)/-components/create-load-balancer-page.tsx
index cc55e4d1a..c1840a28f 100644
--- a/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(load-balancers)/-components/create-load-balancer-page.tsx
+++ b/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(load-balancers)/-components/create-load-balancer-page.tsx
@@ -353,6 +353,7 @@ export function CreateLoadBalancerPage() {
{wizardResult.created.map((r, i) => (
+ // oxlint-disable-next-line no-array-index-key -- static failure summary, never reordered or filtered
-
{r.type}: {r.id ?? "(created)"}
diff --git a/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(vpc)/create-vpc.tsx b/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(vpc)/create-vpc.tsx
index 1aca9ed3e..1023f5cf8 100644
--- a/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(vpc)/create-vpc.tsx
+++ b/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(vpc)/create-vpc.tsx
@@ -162,6 +162,7 @@ function CreateVpc() {
{wizardResult.created.map((r, i) => (
+ // oxlint-disable-next-line no-array-index-key -- static failure summary, never reordered or filtered
-
{r.type}: {r.id}
diff --git a/spinifex/services/spinifexui/frontend/src/routes/_auth/eks/(clusters)/-components/create-cluster-page.tsx b/spinifex/services/spinifexui/frontend/src/routes/_auth/eks/(clusters)/-components/create-cluster-page.tsx
index 9e8001b14..179853655 100644
--- a/spinifex/services/spinifexui/frontend/src/routes/_auth/eks/(clusters)/-components/create-cluster-page.tsx
+++ b/spinifex/services/spinifexui/frontend/src/routes/_auth/eks/(clusters)/-components/create-cluster-page.tsx
@@ -381,6 +381,7 @@ export function CreateClusterPage() {
0.0.0.0/0.
{publicCidrs.map((cidr, index) => (
+ // oxlint-disable-next-line no-array-index-key -- controlled inputs; a stable key needs publicAccessCidrs off string[]