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 3a547f4..5672662 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "undici": "^6.19.2" }, "devDependencies": { - "@chubbyts/chubbyts-eslint": "^2.0.3", + "@chubbyts/chubbyts-eslint": "^2.0.7", "@chubbyts/chubbyts-function-mock": "^1.4.2", "@chubbyts/chubbyts-packaging": "^2.0.7", "@stryker-mutator/core": "^8.2.6", diff --git a/tests/undici-http.test.ts b/tests/undici-http.test.ts index a48fdea..65839f9 100644 --- a/tests/undici-http.test.ts +++ b/tests/undici-http.test.ts @@ -15,7 +15,7 @@ const streamToString = async (stream: Stream): Promise => { // eslint-disable-next-line functional/immutable-data stream.on('data', (chunk) => list.push(chunk)); stream.on('end', () => resolve(Buffer.concat(list).toString('utf-8'))); - stream.on('error', (error) => reject(error)); + stream.on('error', reject); }); }; 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" + ], +}