effector / effector/eslint-plugin

Rule: `no-mutation-in-pure-functions`

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

Description

Some functions in effector API should be pure:
+ reducer in `.on`-call
+ combinator (`fn`) in `sample`
+ filter in `guard`, `.filter` and `.filterMap`
+ mapper in `.map` and `.prepend`

We cannot prove the purity functions by ESLint rule, but we can forbid mutations in these cases.

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.