fix removed-forbidden test

main
Brian Hicks 2020-11-21 06:11:08 -06:00
parent e57657a76e
commit 966c5dfbce
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
vendor/elm-spa-example/src/Article/Body.elm: removed forbidden import Html! (Run me with `update` to fix this.)
It looks like you removed some forbidden imports. Good job! To update the config
and remove this error, just run me with the `update` command!

View File

@ -9,7 +9,7 @@ set -e
elm-forbid-import update
FILE="$(jq -r '.file' <<< "$MATCH")"
FILE="$(jq -r '.path' <<< "$MATCH")"
cp "$FILE" "$FILE.bak"
sed -i "$(jq '.position.row' <<< "$MATCH")d" "$FILE"