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 5eec0e1 commit d7214d1
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const eslintrc = require('@chubbyts/chubbyts-eslint/dist/eslintrc').default;
const config = require('@chubbyts/chubbyts-eslint/dist/eslintrc').default;

module.exports = {
...eslintrc,
rules: {
...eslintrc.rules,
'functional/prefer-tacit': 'off'
}
...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 @@ -53,7 +53,7 @@
"zod": "^3.23.8"
},
"devDependencies": {
"@chubbyts/chubbyts-eslint": "^2.0.4",
"@chubbyts/chubbyts-eslint": "^2.0.7",
"@chubbyts/chubbyts-function-mock": "^1.4.3",
"@chubbyts/chubbyts-packaging": "^2.0.6",
"@stryker-mutator/core": "^8.2.6",
Expand Down
2 changes: 1 addition & 1 deletion src/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ export const streamToString = async (stream: Stream): Promise<string> => {

stream.on('data', (chunk) => (data += chunk));
stream.on('end', () => resolve(data));
stream.on('error', (error) => reject(error));
stream.on('error', reject);
});
};
2 changes: 1 addition & 1 deletion src/zod-to-invalid-parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const filterContext = (rest: unknown): unknown => {
}

if (isArray(rest)) {
return rest.map((value) => filterContext(value));
return rest.map(filterContext);
}

if (isNull(rest) || isBoolean(rest) || isNumber(rest) || isString(rest)) {
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 d7214d1

Please sign in to comment.