mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-12-23 17:53:35 +03:00
22 lines
509 B
Elm
22 lines
509 B
Elm
module NoInconsistentAliases.Visitor.Options exposing (AliasLookup, Options, fromConfig)
|
|
|
|
import Elm.Syntax.ModuleName exposing (ModuleName)
|
|
import NoInconsistentAliases.Config as Config exposing (Config)
|
|
|
|
|
|
type alias Options =
|
|
{ lookupAlias : AliasLookup
|
|
, canMissAliases : Bool
|
|
}
|
|
|
|
|
|
type alias AliasLookup =
|
|
ModuleName -> Maybe String
|
|
|
|
|
|
fromConfig : Config -> Options
|
|
fromConfig config =
|
|
{ lookupAlias = Config.lookupAlias config
|
|
, canMissAliases = Config.canMissAliases config
|
|
}
|