You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The template nicely provides tools for linting. However, when running pnpm lint:ts on the freshly checked out template, I'm getting a lot of errors, see below. Would be nice if the template code didn't throw lint errors, because otherwise it will be hard to distinguish these from lint errors of my code. This basically makes linting unusable.
% pnpm lint:ts
> @zama-ai/[email protected] lint:ts /Users/matthias/tmp/fhevm/fhevm-auction
> eslint .
/Users/matthias/tmp/fhevm/fhevm-auction/test/asyncDecrypt.ts
123:29 error A `require()` style import is forbidden @typescript-eslint/no-require-imports
148:9 error 'encodedData' is never reassigned. Use 'const' instead prefer-const
149:9 error 'calldata' is never reassigned. Use 'const' instead prefer-const
/Users/matthias/tmp/fhevm/fhevm-auction/test/coprocessorUtils.ts
14:5 error 'counterRand' is assigned a value but never used @typescript-eslint/no-unused-vars
187:16 error 'e' is defined but never used @typescript-eslint/no-unused-vars
570:7 error Unexpected lexical declaration in case block no-case-declarations
571:7 error Unexpected lexical declaration in case block no-case-declarations
572:7 error Unexpected lexical declaration in case block no-case-declarations
785:7 error Expected a 'break' statement before 'case' no-fallthrough
/Users/matthias/tmp/fhevm/fhevm-auction/test/fhevmjsMocked.ts
142:23 error A `require()` style import is forbidden @typescript-eslint/no-require-imports
/Users/matthias/tmp/fhevm/fhevm-auction/test/mockedSetup.ts
17:23 error A `require()` style import is forbidden @typescript-eslint/no-require-imports
20:24 error A `require()` style import is forbidden @typescript-eslint/no-require-imports
23:23 error A `require()` style import is forbidden @typescript-eslint/no-require-imports
26:25 error A `require()` style import is forbidden @typescript-eslint/no-require-imports
29:30 error A `require()` style import is forbidden @typescript-eslint/no-require-imports
32:27 error A `require()` style import is forbidden @typescript-eslint/no-require-imports
/Users/matthias/tmp/fhevm/fhevm-auction/test/reencrypt.ts
164:12 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
/Users/matthias/tmp/fhevm/fhevm-auction/test/signers.ts
6:6 error 'AccountNames' is defined but never used @typescript-eslint/no-unused-vars
The text was updated successfully, but these errors were encountered:
The template nicely provides tools for linting. However, when running
pnpm lint:ts
on the freshly checked out template, I'm getting a lot of errors, see below. Would be nice if the template code didn't throw lint errors, because otherwise it will be hard to distinguish these from lint errors of my code. This basically makes linting unusable.The text was updated successfully, but these errors were encountered: