Skip to content

Commit

Permalink
fix preview to match ClauseInCase changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfpleite committed May 28, 2024
1 parent d692739 commit 3f02e51
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion preview/elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"dependencies": {
"direct": {
"elm/core": "1.0.5",
"elmcraft/core-extra": "2.0.0",
"jfmengels/elm-review": "2.13.2",
"stil4m/elm-syntax": "7.3.2"
},
Expand All @@ -18,6 +19,7 @@
"elm/parser": "1.1.0",
"elm/project-metadata-utils": "1.0.2",
"elm/random": "1.0.0",
"elm/regex": "1.0.0",
"elm/time": "1.0.0",
"elm/virtual-dom": "1.0.3",
"elm-explorations/test": "2.2.0",
Expand All @@ -32,4 +34,4 @@
},
"indirect": {}
}
}
}
7 changes: 6 additions & 1 deletion preview/src/ReviewConfig.elm
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,10 @@ import Review.Rule exposing (Rule)

config : List Rule
config =
[ Install.ClauseInCase.rule
[ Install.ClauseInCase.init
"Backend"
"updateFromFrontend"
"ResetCounter"
"( { model | counter = 0 }, broadcast (CounterNewValue 0 clientId) )"
|> Install.ClauseInCase.makeRule
]

0 comments on commit 3f02e51

Please sign in to comment.