mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-21 19:56:33 +00:00
fix: disable now unneeded lint rules
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user