jxxcarlson/elm-review-codeinstaller/13.0.0

Install.ElementToList

config : String -> String -> List String -> Config

Create a rule that adds elements to a list.

For example, the rule

Install.Rule.rule
    [ Install.ElementToList.config
        "User"
        "userTypes"
        [ "Admin", "SystemAdmin" ]
        |> Install.Rule.elementToList
    ]

results in the following fix for function User.userTypes:

[ Standard ] -> [ Standard, Admin, SystemAdmin ]
type alias Config =
Config

Configuration for rule.