Skip to content

Commit

Permalink
eslint upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikzogg committed Jun 24, 2024
1 parent fc5175c commit fcf66ac
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -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',
},
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion tests/undici-http.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const streamToString = async (stream: Stream): Promise<string> => {
// 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);
});
};

Expand Down
7 changes: 7 additions & 0 deletions tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"include": [
"src",
"tests"
],
}

0 comments on commit fcf66ac

Please sign in to comment.