Provides elm-review
rules to enforce functional style in javascript/typescript.
FunctionalJavascript.NoLooseEquality
- Reports uses of==
and!==
in javascript and typescript files.FunctionalTypescript.NoUnionReturns
- Reports functions that return union types.
module ReviewConfig exposing (config)
import FunctionalTypescript.NoUnionReturns
import FunctionalJavascript.NoLooseEquality
import Review.Rule exposing (Rule)
config : List Rule
config =
[ FunctionalTypescript.NoUnionReturns.rule
, FunctionalJavascript.NoLooseEquality.rule
]
You can try the example configuration above out by running the following command:
elm-review --template mateusfpleite/elm-review-functional-javascript/example