mapbox / pixelmatch

The smallest, simplest and fastest JavaScript pixel-level image comparison library
ISC License
6.1k stars 304 forks source link

Fix line-endings on windows #123

Open haraldreingruber-dedalus opened 1 year ago

haraldreingruber-dedalus commented 1 year ago

yarn run test doesn't work on Windows, because the line-endings are checked out differently than the configured ESLint rules.

This .gitattributes file makes sure that *.js files and bin/pixelmatch are checked out with Linux line-endings on Windows. This way, yarn run test can be executed successfully on my machine.