eslint-plugin-total-functions
An ESLint plugin to enforce the use of total functions (and prevent the use of partial functions) in TypeScript. (by danielnixon)
eslint-plugin-functional
ESLint rules to disable mutation and promote fp in JavaScript and TypeScript. (by eslint-functional)
eslint-plugin-total-functions | eslint-plugin-functional | |
---|---|---|
1 | 7 | |
90 | 943 | |
- | 0.8% | |
0.0 | 9.0 | |
7 days ago | 5 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
eslint-plugin-total-functions
Posts with mentions or reviews of eslint-plugin-total-functions.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-03-15.
-
The Complete Guide to Immutability in TypeScript
There’s also eslint-plugin-total-functions, which includes the rule total-functions/no-unsafe-readonly-mutable-assignment which warns when a readonly type is assigned to or passed as an argument to a function taking a mutable type.
eslint-plugin-functional
Posts with mentions or reviews of eslint-plugin-functional.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-02-05.
-
Generative AI in JavaScript? Microsoft’s GenAIScript, Svelte 5, Next.js 15 and more
eslint-plugin-functional
- Enforce Functional Programming in JavaScript and TypeScript
-
How to add a property to an object that doesn't exist in its type?
It recommend using https://github.com/eslint-functional/eslint-plugin-functional to force readonly on all properties.
-
CI checks not rerunning when a bot makes a commit to a PR
Here's one the PRs that this issue happens with: https://github.com/eslint-functional/eslint-plugin-functional/pull/397
-
[ESLint] Passes locally but fails in CI
Here's the CI log link.
-
What other ways to enforce immutability in Angular beside using Immutable.js?
Also add this no-mutation ESLint rule as extra protection https://github.com/jonaskello/eslint-plugin-functional/blob/master/docs/rules/immutable-data.md
-
Which is the best functional programming library for typescript?
I just use https://github.com/jonaskello/eslint-plugin-functional
What are some alternatives?
When comparing eslint-plugin-total-functions and eslint-plugin-functional you can also consider the following projects:
tsafe - 🔩 The missing TypeScript utils
remeda - A utility library for JavaScript and TypeScript.
eslint-plugin-jest - ESLint plugin for Jest
pratica - 🥃 Functional Algebraic Data Types
typescript-eslint-demo - typescript eslint playground
fp-ts - Functional programming in TypeScript