
029: Writing an elm-review Rule
We walk through how to write an elm-review rule from scratch. Also, how to test your rules, and how to write an automated fix.
Audio is streamed directly from the publisher (cdn.simplecast.com) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.
Show Notes
dillonkearns/elm-review-html-to-elm(elm-review version of html-to-elm.com)Elm review cli new rule command
Review context
elm-review's context is likeModel, elm-syntaxNodeis like aMsg, ReviewErrors areCmds, visitors are likeupdateelm-review's new configuration errors APIImport aliases feature:
ModuleNameLookupTableelm-reviewFixes APIJeroen's Safe Unsafe Operations blog post
Getting started
Some repos to look at for inspiration
- github.com/jfmengels/elm-review-unused
- github.com/jfmengels/elm-review-common
- github.com/jfmengels/elm-review-debug
- github.com/jfmengels/elm-review-simplify
The elm-review package docs are very through and worth reading