Skip to content

henriquecbuss/elm-review-no-function-outside-of-modules

Repository files navigation

elm-review-no-function-outside-of-modules

Provides elm-review rules to forbid using functions outside of certain modules.

Provided rules

Configuration

module ReviewConfig exposing (config)

import NoFunctionOutsideOfModules
import Review.Rule exposing (Rule)

config : List Rule
config =
    [ NoFunctionOutsideOfModules.rule [ ( [ "Html.input" ], [ "View.Input" ] ) ]
    ]

Try it out

You can try the example configuration above out by running the following command:

elm-review --template henriquecbuss/elm-review-no-function-outside-of-modules/example-with-no-html-input-outside-of-view