From 2c99108224c8167957f2aba53f73200e28edefd0 Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Thu, 26 Mar 2020 11:56:48 +0100 Subject: [PATCH] Add .gitattributes --- .gitattributes | 1 + __tests__/finder.test.ts | 12 ++---------- package.json | 2 +- 3 files changed, 4 insertions(+), 11 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..94f480de --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf \ No newline at end of file diff --git a/__tests__/finder.test.ts b/__tests__/finder.test.ts index 6b44caed..457f8b11 100644 --- a/__tests__/finder.test.ts +++ b/__tests__/finder.test.ts @@ -5,21 +5,13 @@ import path = require('path'); const toolDir = path.join( __dirname, 'runner', - path.join( - Math.random() - .toString(36) - .substring(7) - ), + path.join(Math.random().toString(36).substring(7)), 'tools' ); const tempDir = path.join( __dirname, 'runner', - path.join( - Math.random() - .toString(36) - .substring(7) - ), + path.join(Math.random().toString(36).substring(7)), 'temp' ); diff --git a/package.json b/package.json index 2cc0dd41..17d1029c 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "husky": { "skipCI": true, "hooks": { - "pre-commit": "npm run build && npm run format" + "pre-commit": "npm run build && npm run format-check" } } }