jxxcarlson/elm-review-codeinstaller/12.0.1

NOTE: the latest version is 13.0.0

Install.ElementToList

makeRule : String -> String -> List String -> Rule

Create a rule that adds elements to a list.

For example, the rule

Install.ElementToList.makeRule "User" "userTypes" [ "Admin", "SystemAdmin" ]

results in the following fix for function User.userTypes:

[ Standard ] -> [ Standard, Admin, SystemAdmin ]