@re-reduced/biome-plugin
v0.2.0
Published
Biome GritQL plugin: lint rules for the re-reduced container API.
Readme
@re-reduced/biome-plugin
Biome GritQL lint rules for the
re-reduced container API — catching type-valid but semantically-wrong
usage that TypeScript can't see.
Rules
- no-unstable-selector — a
useSelectselector that returns a fresh object or array literal ((s) => ({ … })/(s) => [ … ]). It type-checks, but produces a new reference every call, defeating the snapshot bail-out so the component re-renders on every store update. Return a primitive or stable reference, or split into multipleuseSelectcalls.
Usage
// biome.json
{
"plugins": [
"./node_modules/@re-reduced/biome-plugin/rules/no-unstable-selector.grit"
]
}Requires @biomejs/biome >= 2.0.
