Skip to content

Commit

Permalink
feat: dev libraries bump and run prettier (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
Saeger authored Oct 5, 2022
1 parent 2d2062c commit 977d8b9
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 49 deletions.
11 changes: 4 additions & 7 deletions lib/utils/clean_object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@ export function cleanObject<T extends { [key: string]: any }>(pollutedObject: T)
.filter(([, value]): boolean => value !== undefined)
.map(([key, value]: Entry): Entry => [key, isObject(value) ? cleanObject(value) : value]);

return entries.reduce(
(cleanObject, [currentKey, currentValue]): { [key: string]: any } => {
cleanObject[currentKey] = currentValue;
return cleanObject;
},
{} as any
);
return entries.reduce((cleanObject, [currentKey, currentValue]): { [key: string]: any } => {
cleanObject[currentKey] = currentValue;
return cleanObject;
}, {} as any);
}
80 changes: 40 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
},
"devDependencies": {
"@types/jest": "^29.1.1",
"@typescript-eslint/eslint-plugin": "^5.13.0",
"@typescript-eslint/parser": "^5.13.0",
"@typescript-eslint/eslint-plugin": "^5.39.0",
"@typescript-eslint/parser": "^5.39.0",
"commitizen": "^4.2.4",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.10.0",
Expand Down

0 comments on commit 977d8b9

Please sign in to comment.