From ddc5a505293fa8657f6e19ecc28480c8f77cbbc7 Mon Sep 17 00:00:00 2001 From: Johannes Marbach Date: Tue, 8 Sep 2026 11:29:36 +0200 Subject: [PATCH] Disable new react compiler rules --- .oxlintrc.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.oxlintrc.json b/.oxlintrc.json index d06f2a473..c89ab8a28 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -39,6 +39,17 @@ "jsdoc/check-property-names": "error", "jsdoc/require-param-description": "warn", "react/display-name": "error", + // TODO: These React Compiler-based rules joined oxlint's correctness + // category in v1.81 and flag many pre-existing patterns, including hooks + // like useLatest/useInitial/useReactiveState that intentionally access + // refs during render. Re-evaluate them when adopting the React Compiler. + "react/immutability": "off", + "react/no-deriving-state-in-effects": "off", + "react/preserve-manual-memoization": "off", + "react/refs": "off", + "react/set-state-in-effect": "off", + "react/static-components": "off", + "react/use-memo": "off", // TODO: Re-enable once oxlint supports lint rules that rely on TypeScript type-awareness. // "rxjs/no-exposed-subjects": "error", // "rxjs/finnish": [