hardhat
hardhat copied to clipboard
Refactoring tasks for v-next
Here's a list of refactoring tasks we can work on to improve consistency and clarity:
- [x] ~~
v-next/core/src/global-dir.ts
: Path is too high in the hierarchy. It should be moved tov-next/core/src/internal
orv-next/core/src/internal/utils
.~~ Moved tohardhat-utils/global-dir
. - [ ]
v-next/hardhat/src/internal/constants.ts
andv-next/hardhat/src/internal/cli/init/constants.ts
should be unified. - [ ]
v-next/hardhat/src/internal/cli/helpers/getGlobalHelpString.ts
andv-next/hardhat/src/internal/cli/helpers/getHelpString.ts
should be renamed to snake-case. - [ ] The path
v-next/hardhat/src/internal/cli/helpers
contains files related to the help CLI option, but the name could be more explicit. Renaming it tohelp
would be consistent with theinit
folder and avoid confusion withutils
folders. - [x]
v-next/hardhat/src/internal/helpers/config-loading.ts
should be moved tov-next/hardhat/src/internal
orv-next/hardhat/src/internal/utils
.