From 635aa55d037dada458ac62d5a1ff7cdbc5988468 Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Wed, 21 Mar 2018 10:03:19 -0700 Subject: [PATCH] Force LF for package-lock.json Most versions of NPM in use always use LF for line endings anyway. Forcing LF on windows should limit the number of no-op changes. This issue has been fixed in NPM (see https://github.com/npm/npm/issues/1716) but not everyone will have the fix. --- .gitattributes | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000..fa4a904c02 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Force LF for package-lock files - not all version of NPM detect line endings. +package-lock.json text eol=lf \ No newline at end of file