ESLint Rule
Prevents calling anonymous tuple mode inside functions/components.
Why is it needed?
createRxState(defaultValue)creates a new store every time it is called. It is safe to export and use at the module top level, but calling it inside a React component may create a new store on every render path.
ESLint flat config
js
Legacy rulesdir
bash