-
Currying (configs.currying)
JavaScript functions support syntax that is not compatible with curried functions. To enforce currying, this syntax
should be prevented.
-
No Exceptions (configs.noExceptions)
Functional programming style does not use run-time exceptions. Instead expressions produces values to indicate errors.
-
No Mutations (configs.noMutations)
Prevent mutating any data as that's not functional
-
No Other Paradigms (configs.noOtherParadigms)
JavaScript is multi-paradigm, allowing not only functional, but object-oriented as well as other programming styles.
To promote a functional style, prevent the use of other paradigm styles.
-
No Statements (configs.noStatements)
In functional programming everything is an expression that produces a value.
JavaScript has a lot of syntax that is just statements that does not produce a value.
That syntax has to be prevented to promote a functional style.
-
Stylistic (configs.stylistic)
Enforce code styles that can be considered to be more functional.