From 8693f873a0e92e609e83f89ebf2559ef17aa88fc Mon Sep 17 00:00:00 2001 From: Dominik Zogg Date: Thu, 20 Jun 2024 15:32:43 +0200 Subject: [PATCH] eslint upgrade --- .eslintrc.cjs | 10 +++++++++- package.json | 2 +- tsconfig.eslint.json | 7 +++++++ 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 tsconfig.eslint.json diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 144ae5c..ee9d6dc 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -1 +1,9 @@ -module.exports = require('@chubbyts/chubbyts-eslint/dist/eslintrc').default; +const config = require('@chubbyts/chubbyts-eslint/dist/eslintrc').default; + +module.exports = { + ...config, + parserOptions: { + ...config.parserOptions, + project: './tsconfig.eslint.json', + }, +}; diff --git a/package.json b/package.json index 64622ce..5399ff1 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ }, "dependencies": {}, "devDependencies": { - "@chubbyts/chubbyts-eslint": "^2.0.3", + "@chubbyts/chubbyts-eslint": "^2.0.7", "@chubbyts/chubbyts-packaging": "^2.0.7", "@stryker-mutator/core": "^8.2.6", "@stryker-mutator/vitest-runner": "^8.2.6", diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json new file mode 100644 index 0000000..524af35 --- /dev/null +++ b/tsconfig.eslint.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "include": [ + "src", + "tests" + ], +}