TypeChain
TypeChain copied to clipboard
Broken eslint typescript rules that makes this codebase uglier
Need to make proper issues in typescript-eslint repo:
@typescript-eslint/no-unused-vars
Doesn't respect _ on unused types
Hi there @krzkaczor , I keep getting the following error which I believe might be related to the issue you are reporting:
SyntaxError: '{' expected. (25:37)
23 |
24 |
> 25 | export interface Committed_address[] {
| ^
26 | name: "Committed"
27 | args: {
28 | whitelist : (string)[],
I'm migrating a truffle project to a hardhat/typechain/trufflev5 stack but all the contracts should be compiled without an issue. Any recommendation on a workaround? eslintignore?
This looks like a unreleated problem - it seems that typechain generates invalid code for your ABI / contract name? Can you provide a repro case (and create a new issue)?