Skip to content

Commit

Permalink
lint: fix lint issue and added lint script
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Sep 4, 2021
1 parent 34d6e2f commit af0c09e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
"start": "concurrently \"yarn:start:*\"",
"start:app": "cd app && yarn start",
"start:web": "cd web && yarn start",
"lint": "concurrently \"yarn:lint:*\"",
"lint:app": "cd app && yarn lint",
"lint:web": "cd web && yarn lint",
"prettify": "prettier --write ."
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions web/src/components/accounts/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export function emptyAccount(merge?: AccountOptions | any): AccountOptions {
};
}

export function hasInvalidKeys(obj: {}): boolean {
export function hasInvalidKeys(obj: object): boolean {
return Object.keys(obj).some((key) => {
const val = obj[key];
const val = obj[key as keyof typeof obj];
if (val === null || Number.isNaN(val) || val === undefined || val === '') {
return true;
}
Expand Down

0 comments on commit af0c09e

Please sign in to comment.