OpenZeppelin/openzeppelin-contracts
Ver no GitHubConsider adding an ESLint rule for no async in describe blocks
Open
#4.943 aberto em 6 de mar. de 2024
good first issuetests
Métricas do repositório
- Stars
- (23.941 stars)
- Métricas de merge de PR
- (Mesclagem média 42d 15h) (16 fundiu PRs em 30d)
Description
From @fvictorio:
I forgot to mention:
- The wrong
asynckeywords in describe functions can be prevented with this rule.- The missing
awaitkeywords are harder. Ideally you'd use typescript and theno-floating-promisesrule, but I understand that that would be a huge undertaking.Originally posted by @fvictorio in https://github.com/OpenZeppelin/openzeppelin-contracts/issues/4942#issuecomment-1980874051
We're considering adding only the ESLint rule and not migrating to Typescript to catch floating promises. However, we're open to alternatives.