Closed Johnnycus closed 2 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/igneous-labs/stake-pool-sdk/7XGmS8DqezuNqyeSDzUgftoziSHY
✅ Preview: https://stake-pool-sdk-git-feat-pre-commit-eslint-prettier-igneous-labs.vercel.app
ESLint suggests replacing
for...in
with array loops so I added// TODO
comments there. Or we can turn that rule off.
Lets keep that rule, there seems to be only 1 instance where for (... in ...)
is used and thats in reverse()
in stake-pool/utils.ts
. Could you refactor that to iterate Object.keys()
instead? Thanks!
ESLint suggests replacing
for...in
with array loops so I added// TODO
comments there. Or we can turn that rule off.Lets keep that rule, there seems to be only 1 instance where
for (... in ...)
is used and thats inreverse()
instake-pool/utils.ts
. Could you refactor that to iterateObject.keys()
instead? Thanks!
Done, there were also some instances of for...of
which I also replaced with forEach
. I only kept one for...of
that had async/await
. We can replace it with map
, but this will run them in parallel
ESLint suggests replacing
for...in
with array loops so I added// TODO
comments there. Or we can turn that rule off.