Fix all eslint warnings
Can be found via npm run lint

I want to take it.
Go for it @erum-hassan ! 🙏
Hey @erum-hassan , any updates on this?
Hey @dawsbot I was going to knock this one out for you. It's seems like you got must of the lint issues. There are only these remaining that all come from this file: https://github.com/dawsbot/essential-eth/blob/ae50d17a1040c46c7149e9ff585dce8c9e65dfc9/src/providers/test/json-rpc-provider/get-fee-data.test.ts
/Users/jacobfirek/Documents/Projects/essential-eth/essential-eth/src/providers/test/json-rpc-provider/get-fee-data.test.ts
16:7 warning Do not use "@ts-ignore" because it alters compilation errors @typescript-eslint/ban-ts-comment
19:5 warning Do not use "@ts-ignore" because it alters compilation errors @typescript-eslint/ban-ts-comment
21:7 warning Do not use "@ts-ignore" because it alters compilation errors @typescript-eslint/ban-ts-comment
24:5 warning Do not use "@ts-ignore" because it alters compilation errors @typescript-eslint/ban-ts-comment
26:7 warning Do not use "@ts-ignore" because it alters compilation errors @typescript-eslint/ban-ts-comment
29:5 warning Do not use "@ts-ignore" because it alters compilation errors @typescript-eslint/ban-ts-comment
31:7 warning Do not use "@ts-ignore" because it alters compilation errors @typescript-eslint/ban-ts-comment
I have thought of 3 solutions:
- Add an exception to the lint rules for @ts-ignore.
- set a default value incase of null.
- Use the ! non-null assertion which would suppress the original warning, but throw a new warning
warning Forbidden non-null assertion
Which would you like me to do or would you like to see this fixed in another way?
Thanks for the detailed thoughts here @jtfirek - unfortunately I think the design of these tests is flawed at a big level because they are so dependent upon both ethers and having network access.
I'm hoping to provide a proper refactor to tests like this using mocks so that it's no-longer network-dependent and flaky. Do you have experience with mocking?
I do not, but I'll learn it! I will put #201 on my todo list @dawsbot