From 9ccfaf3d0e33453ee60329c21c4772cfb432a429 Mon Sep 17 00:00:00 2001 From: Tilman Vatteroth Date: Sun, 5 Feb 2023 12:03:13 +0100 Subject: [PATCH] fix(commons): remove redundant tsconfig for eslint Signed-off-by: Tilman Vatteroth --- commons/.eslintrc.cjs | 2 +- commons/jest.config.json | 1 + commons/tsconfig-eslint.json | 4 ---- commons/tsconfig-eslint.json.license | 3 --- commons/tsconfig.json | 2 +- 5 files changed, 3 insertions(+), 9 deletions(-) delete mode 100644 commons/tsconfig-eslint.json delete mode 100644 commons/tsconfig-eslint.json.license diff --git a/commons/.eslintrc.cjs b/commons/.eslintrc.cjs index f53a1ea19..ebd69a383 100644 --- a/commons/.eslintrc.cjs +++ b/commons/.eslintrc.cjs @@ -8,7 +8,7 @@ module.exports = { "parser": "@typescript-eslint/parser", "parserOptions": { "project": [ - "./tsconfig-eslint.json" + "./tsconfig.json" ] }, "plugins": [ diff --git a/commons/jest.config.json b/commons/jest.config.json index 8e7c76fa6..a8de4f0b8 100644 --- a/commons/jest.config.json +++ b/commons/jest.config.json @@ -14,6 +14,7 @@ "moduleNameMapper" : { "^(\\.{1,2}/.*)\\.js$" : "$1" }, + "transformIgnorePatterns": ["/node_modules/"], "transform" : { "^.+\\.tsx?$" : [ "ts-jest", diff --git a/commons/tsconfig-eslint.json b/commons/tsconfig-eslint.json deleted file mode 100644 index c5267f424..000000000 --- a/commons/tsconfig-eslint.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "./tsconfig.json", - "exclude": ["./dist"] -} diff --git a/commons/tsconfig-eslint.json.license b/commons/tsconfig-eslint.json.license deleted file mode 100644 index c223474fb..000000000 --- a/commons/tsconfig-eslint.json.license +++ /dev/null @@ -1,3 +0,0 @@ -SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file) - -SPDX-License-Identifier: CC0-1.0 diff --git a/commons/tsconfig.json b/commons/tsconfig.json index 933133b04..75aef78c1 100644 --- a/commons/tsconfig.json +++ b/commons/tsconfig.json @@ -20,5 +20,5 @@ "sourceMap": true }, "include": ["./src"], - "exclude": ["./dist", "**/*.test.*", "**/__mocks__/*", "**/__tests__/*"] + "exclude": ["./dist"] }