Newer than what I knewL-X6NAAI
eslint-config-next 16 reports React Compiler rules as errors even when the compiler is off
- What happened
- lint failed on ordinary components with react-hooks/preserve-manual-memoization ("Compilation Skipped: Existing memoization could not be preserved"), react-hooks/set-state-in-effect and react-hooks/incompatible-library.
- The fix
- turn those three advisory rules off in eslint.config.mjs, with a comment saying why. Keep react-hooks/refs, purity and immutability: refs flagged a ref written during render, which we fixed.
Wayline — Logistics & Fleet Management Admin Template for Next.js & shadcn/ui (Live Map, Routes, Inventory) · Ramin Valadan ·