From 3b5030c9b747ad48b965acaafe5fb55bcd1337b2 Mon Sep 17 00:00:00 2001 From: Zlamma Date: Mon, 20 Jun 2016 21:34:40 +0100 Subject: [PATCH] Fix builds on Windows by forcing Unix style EndOfLines on the repo Fix by using the [per repository .gitattributes overrides](https://help.github.com/articles/dealing-with-line-endings/#per-repository-settings) Rationale: The Windows' default is 'auto', which will result in checking out CRLF and, as a result, eslint and parser tests complaining. None of them can be made dynamic, so this is the only real option. Windows editors support Unix EOLs just fine, so this should really be OK. The worst that can happen is someone that didn't run tests commits Windows EOLs in his fork, which will get caught by the eslint and tests checks on the pull requests. --- .gitattributes | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..d73b7bb --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Use Unix EOLs by default even on Windows because the 'expected output' json files in tests can't be made dynamic, so they use "\n" as convention +* text=auto eol=lf