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 4694565 commit 07711d9
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 @@
"@chubbyts/chubbyts-http-types": "^1.2.3"
},
"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/handler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const readStream = async (stream: Stream) => {

stream.on('data', (chunk) => (data += chunk));
stream.on('end', () => resolve(data));
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 07711d9

Please sign in to comment.