effector / effector/eslint-plugin

Rule: `no-implicit-undefined`

Open
#10 0 comments 6 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
94
Forks
18
PR merge metrics
No merged PRs in 30d

Description

`undefined` used in Effector as a marker for skipping update in store. It can be hard to understand, if `undefined` is implicit used in store. E.g.
```ts
const $list = createStore([]);

const $item = $list.map(head);
```
This code will skip update if `$list` has an empty array.

The rule ought to forbid implicit usage of `undefined` in stores and mappers.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.