TypeChain icon indicating copy to clipboard operation
TypeChain copied to clipboard

Broken eslint typescript rules that makes this codebase uglier

Open krzkaczor opened this issue 4 years ago • 2 comments

Need to make proper issues in typescript-eslint repo:

@typescript-eslint/no-unused-vars

Doesn't respect _ on unused types

krzkaczor avatar Jul 03 '21 17:07 krzkaczor

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?

RiccardoBiosas avatar Jul 05 '21 06:07 RiccardoBiosas

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)?

krzkaczor avatar Jul 19 '21 20:07 krzkaczor