eslint-plugin icon indicating copy to clipboard operation
eslint-plugin copied to clipboard

Rule: `no-implicit-undefined`

Open igorkamyshev opened this issue 4 years ago • 0 comments

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.

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.

igorkamyshev avatar Aug 28 '21 11:08 igorkamyshev