Provides elm-review
rules to enforce consistent import aliases.
NoInconsistentAliases
- enforce consistent aliases.NoModuleOnExposedNames
- forbid module on exposed names.
import NoInconsistentAliases
import NoModuleOnExposedNames
import Review.Rule exposing (Rule)
config : List Rule
config =
[ NoInconsistentAliases.config
[ ( "Html.Attributes", "Attr" )
, ( "Json.Decode", "Decode" )
, ( "Json.Encode", "Encode" )
]
|> NoInconsistentAliases.noMissingAliases
|> NoInconsistentAliases.rule
, NoModuleOnExposedNames.rule
]
You can try the example configuration above out by running the following command:
elm-review --template sparksp/elm-review-imports/example