An ESLint plugin that enforces pure functional programming by disallowing side-effect-causing language constructs.
eslint-plugin-pure is an ESLint plugin designed to help developers write purely functional JavaScript code by statically analyzing and disallowing language constructs that cause side effects. It enforces immutability and purity at the linting stage, making it easier to reason about code behavior and prevent bugs related to unintended side effects.
++ or --) to prevent state mutation.module.exports is considered impure.The plugin promotes a purely functional programming style by statically enforcing rules that eliminate side effects, helping developers write more predictable and maintainable code, particularly in reducers or entity modules.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.