From 1d7f2f066a669b50d21ad126c6d69a94e2829e6e Mon Sep 17 00:00:00 2001 From: Julian Sommer <115516918+juliansommer@users.noreply.github.com> Date: Mon, 24 Aug 2026 09:19:58 +1000 Subject: [PATCH] fix: disable now unneeded lint rules --- .../services/spinifexui/frontend/oxlint.config.ts | 7 ------- .../services/spinifexui/frontend/vite.config.ts | 15 ++++++++++++++- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/spinifex/services/spinifexui/frontend/oxlint.config.ts b/spinifex/services/spinifexui/frontend/oxlint.config.ts index fc49e17a4..3bbba541e 100644 --- a/spinifex/services/spinifexui/frontend/oxlint.config.ts +++ b/spinifex/services/spinifexui/frontend/oxlint.config.ts @@ -46,18 +46,11 @@ export default defineConfig({ ], "react/jsx-handler-names": "off", "react/todo": "off", - "react-you-might-not-need-an-effect/no-adjust-state-on-prop-change": - "error", - "react-you-might-not-need-an-effect/no-chain-state-updates": "error", - "react-you-might-not-need-an-effect/no-derived-state": "error", "react-you-might-not-need-an-effect/no-event-handler": "error", "react-you-might-not-need-an-effect/no-external-store-subscription": "error", - "react-you-might-not-need-an-effect/no-initialize-state": "error", "react-you-might-not-need-an-effect/no-pass-data-to-parent": "error", "react-you-might-not-need-an-effect/no-pass-live-state-to-parent": "error", - "react-you-might-not-need-an-effect/no-reset-all-state-on-prop-change": - "error", "typescript/no-confusing-void-expression": "off", "typescript/no-floating-promises": [ "error", diff --git a/spinifex/services/spinifexui/frontend/vite.config.ts b/spinifex/services/spinifexui/frontend/vite.config.ts index be644cb6a..01325b292 100644 --- a/spinifex/services/spinifexui/frontend/vite.config.ts +++ b/spinifex/services/spinifexui/frontend/vite.config.ts @@ -5,9 +5,22 @@ import tailwindcss from "@tailwindcss/vite" import { tanstackRouter } from "@tanstack/router-plugin/vite" import basicSsl from "@vitejs/plugin-basic-ssl" import react from "@vitejs/plugin-react" -import { defineConfig } from "vite" +import { createLogger, defineConfig } from "vite" + +// React Compiler emits a Todo diagnostic per function it cannot compile. Those +// are its own unimplemented syntax, not defects here, and they bury the build +// output. Other compiler diagnostics still surface. +const logger = createLogger() +const warn = logger.warn.bind(logger) +logger.warn = (msg, options) => { + if (msg.includes("react-compiler(Todo)")) { + return + } + warn(msg, options) +} export default defineConfig({ + customLogger: logger, envDir: "../", build: { target: "es2023",