Provides elm-review
rules to improve your use of The Elm Architecture.
NoMissingSubscriptionsCall
- Reports likely missing calls to asubscriptions
function.NoRecursiveUpdate
- Reports recursive calls of anupdate
function.NoUselessSubscriptions
- Reportssubscriptions
functions that never return a subscription.
module ReviewConfig exposing (config)
import NoMissingSubscriptionsCall
import NoRecursiveUpdate
import NoUselessSubscriptions
import Review.Rule exposing (Rule)
config : List Rule
config =
[ NoMissingSubscriptionsCall.rule
, NoRecursiveUpdate.rule
, NoUselessSubscriptions.rule
]
You can try the example configuration above out by running the following command:
elm-review --template jfmengels/elm-review-the-elm-architecture/example