From 915a230b706c35ed5dd1398ca8cf372dd9580086 Mon Sep 17 00:00:00 2001 From: Eran Machiels Date: Sat, 26 Sep 2020 16:03:37 +0200 Subject: [PATCH] Fixed including and ignoring files incorrectly in eslint and tsconfig --- .eslintrc | 1 + package.json | 2 +- tsconfig-build.json | 6 ++++++ tsconfig.json | 3 ++- 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 tsconfig-build.json diff --git a/.eslintrc b/.eslintrc index b3604bc..be46d0c 100644 --- a/.eslintrc +++ b/.eslintrc @@ -15,6 +15,7 @@ "node": true, "es6": true }, + "ignorePatterns": ["dist", "setupTests.ts", "babel.config.js"], "rules": { "comma-dangle": "off", "class-methods-use-this": "off", diff --git a/package.json b/package.json index 093a971..74a4436 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "react-is": "^16.13.1" }, "scripts": { - "build": "tsc", + "build": "tsc -p tsconfig-build.json", "test": "jest --config=jest.config.json", "test-coverage": "jest --config=jest.config.json --collectCoverage" }, diff --git a/tsconfig-build.json b/tsconfig-build.json new file mode 100644 index 0000000..ab3d20f --- /dev/null +++ b/tsconfig-build.json @@ -0,0 +1,6 @@ +{ + "extends": "./tsconfig.json", + "include": [ + "src/**/*" + ] +} diff --git a/tsconfig.json b/tsconfig.json index 732a6cd..94d9d54 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -37,7 +37,8 @@ }, "include": [ "src/**/*.ts", - "src/**/*.tsx" + "src/**/*.tsx", + "__tests__/**/*" ], "exclude": [ "node_modules",