Provides elm-review
rules to forbid using functions outside of certain modules.
NoFunctionOutsideOfModules
- Reports uses of certain functions outside of certain modules.
module ReviewConfig exposing (config)
import NoFunctionOutsideOfModules
import Review.Rule exposing (Rule)
config : List Rule
config =
[ NoFunctionOutsideOfModules.rule [ ( [ "Html.input" ], [ "View.Input" ] ) ]
]
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