The elm-review rule
Review.Action
transforms your code as specified by comments like --!inline or --!remove.
elm-review --template lue-bird/elm-review-action/examplemodule ReviewConfig exposing (config)
import Review.Action
import Review.Rule
config : List Review.Rule.Rule
config =
[ Review.Action.rule
]But I can't be bothered to write ts. The user experience won't be much worse since elm-review is supported by the language server.
| Variant {-!remove-} ...: remove the variant declaration and the cases matching on itfunctionDeclaration argumentA {-!swap-} argumentB: move arguments a and b in the declaration and all uses