@10stars/config
v20.0.4
Published
Readme
@10stars/config
Shareable Configs
React Compiler rules (browser config)
react/globals, react/immutability, react/preserve-manual-memoization, react/refs and
react/set-state-in-effect are off. They encode React Compiler semantics, and we build with Vite —
nothing is auto-memoized, so render-time ref reads, idempotent module-scope caches and prop-ref
writes are load-bearing house patterns rather than mistakes. preserve-manual-memoization reports
that hand-written memoization stopped the compiler from optimizing, which cannot apply with no
compiler in the pipeline — and hand-written useCallback/useMemo is required house style here.
react/purity stays on: an impure call during render is unstable under any build.
Install
- Not intended for global installation
- Use it as part of your project's
devDependencies
