hop-protocol / hop

🐰 Hop Protocol Monorepo
https://hop.exchange/
MIT License
2.85k stars 188 forks source link

Feat/core packages post merge udpates #595

Closed shanefontaine closed 7 months ago

shanefontaine commented 7 months ago

Simplify and cleanup after config updates.

All TS, lint, and test configs live at the root of the monorepo & each package only extends and adds what they need, if anything. Most per-package configs are pass-through files and only exist to help developers understand the structure of the package (i.e. if there is a jest.config.mjs I know the package is testing using jest) and for tooling to easily understand where to look without changing the defaults of every tool.

Almost every non-config file change in this PR is a lint. The valuable changes to observe are only the config files.

Config

TS Config

Packages

All

hop-node and hop-node-core

sdk and sdk-core

V2 Explorer Backend

Tooling

Linting

Other

netlify[bot] commented 7 months ago

Deploy Preview for hop-sdk-docs failed.

Name Link
Latest commit 24ee9ef56e512c051f392d1ad712e796d507cedf
Latest deploy log https://app.netlify.com/sites/hop-sdk-docs/deploys/6615c171847a01000817db0a
shanefontaine commented 7 months ago

@miguelmota

I really like the new top-level, not built ABI. Only thing I don't love is the use of X__factory throughout, but I see that as a remnant of tyepchain and whenever we find a replacement we can just replace that with something more friendly and requiring less context.

miguelmota commented 7 months ago

@shanefontaine looks great 👍

shanefontaine commented 7 months ago

@miguelmota Ready to merge whenever.

I was relatively against Husky because I didn't understand what problem it solved. I see now that it adds the ability to check stuff at the git hook level on the local machine, something I didn't realize was possible. Because of how small the API is and how lightweight it is (1.1kb - LICENCE is the largest file in the repo), I've warmed up to using it a bit. Two places where I see value: