fix: disable now unneeded lint rules

This commit is contained in:
Julian Sommer
2026-08-24 09:19:58 +10:00
parent 3eb3ffdc9a
commit 1d7f2f066a
2 changed files with 14 additions and 8 deletions
@@ -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",
@@ -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",