From 10efa0f07e746bb8e4345a4a861f1f18cec9f997 Mon Sep 17 00:00:00 2001 From: illiakovalenko Date: Mon, 15 Nov 2021 17:45:31 +0200 Subject: [PATCH 1/2] [NextJs] Add .gitattributes to Next.js sample app with CRLF line endings --- samples/nextjs/.gitattributes | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 samples/nextjs/.gitattributes diff --git a/samples/nextjs/.gitattributes b/samples/nextjs/.gitattributes new file mode 100644 index 0000000000..3d71c2733f --- /dev/null +++ b/samples/nextjs/.gitattributes @@ -0,0 +1,11 @@ +# Line endings for this repository +# See: https://help.github.com/en/articles/configuring-git-to-handle-line-endings +# This should line up with the expectations from .eslintrc + +# Set the default behavior, in case people don't have core.autocrlf set. +* text=crlf + +# Declare files that will always have CRLF line endings on checkout. +*.ts text eol=crlf +*.tsx text eol=crlf +*.js text eol=crlf \ No newline at end of file From b3fab11ce99fdb56530494c4f53e64cf2c03efe6 Mon Sep 17 00:00:00 2001 From: illiakovalenko Date: Mon, 15 Nov 2021 17:46:36 +0200 Subject: [PATCH 2/2] add line --- samples/nextjs/.gitattributes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/nextjs/.gitattributes b/samples/nextjs/.gitattributes index 3d71c2733f..0f0e875a71 100644 --- a/samples/nextjs/.gitattributes +++ b/samples/nextjs/.gitattributes @@ -8,4 +8,4 @@ # Declare files that will always have CRLF line endings on checkout. *.ts text eol=crlf *.tsx text eol=crlf -*.js text eol=crlf \ No newline at end of file +*.js text eol=crlf