From fc48665b29fb758073d2211be97f9fda13e94470 Mon Sep 17 00:00:00 2001 From: Demonus Date: Wed, 17 Oct 2018 12:10:51 +0100 Subject: [PATCH] Added the gitattributes file and changed the eslint config file --- .eslintrc => .eslintrc.js | 6 +++--- .gitattributes | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) rename .eslintrc => .eslintrc.js (82%) create mode 100644 .gitattributes diff --git a/.eslintrc b/.eslintrc.js similarity index 82% rename from .eslintrc rename to .eslintrc.js index 4cffad33337..ed3a01a3c35 100644 --- a/.eslintrc +++ b/.eslintrc.js @@ -1,4 +1,4 @@ -{ +module.exports = { "extends": [ "airbnb", "plugin:prettier/recommended", @@ -22,6 +22,6 @@ "rules": { "react/jsx-one-expression-per-line": "off", "jsx-a11y/label-has-associated-control": "off", - "linebreak-style": "off" + "linebreak-style": ["error", process.env.NODE_ENV === 'prod' ? "unix" : "windows"] } -} +} \ No newline at end of file diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000000..c172e6a43f2 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +*.js text eol=lf +*.jsx text eol=lf \ No newline at end of file