Return non-zero exit code when given images differ (#54)
Return non-zero exit code when given images differ (#54)

* Return non-zero exit code when given images differ

So that caller of this script can decide what to do based on diff result.

* Fix typo

* Disable no-process-exit eslint rule in bin/pixelmatch

* Wait for write operation to finish before exiting

Otherwise resulting file may get corrupted.

* Add missing semicolon

mapbox/pixelmatch