8000 npm run tslint fails due to postfix operator (!) · Issue #640 · ethereumjs/ethereumjs-monorepo · GitHub
[go: up one dir, main page]

Skip to content
npm run tslint fails due to postfix operator (!) #640
Closed
@evertonfraga

Description

@evertonfraga

Our CI does not run tslint, I caught it by running manually.

This is the line mentioned by the script: https://github.com/ethereumjs/ethereumjs-vm/blob/master/lib/index.ts#L113

$ npm run tslint

> ethereumjs-vm@4.1.1 tslint ./ethereumjs-vm
> ethereumjs-config-tslint

+ exec tslint -p ./tsconfig.json -e 'node_modules/**/*' -e '**/node_modules/**/*' -e 'dist/**/*' dist/exceptions.d.ts dist/index.d.ts dist/runBlock.d.ts dist/runBlockchain.d.ts dist/runCall.d.ts dist/runCode.d.ts dist/runTx.d.ts lib/exceptions.ts lib/index.ts lib/runBlock.ts lib/runBlockchain.ts lib/runCall.ts lib/runCode.ts lib/runTx.ts
no-unused-variable is deprecated. Since TypeScript 2.9. Please use the built-in compiler checks instead.

ERROR: ./ethereumjs-vm/lib/index.ts:107:37 - Remove this unnecessary not-null assertion.

It would be great if @s1na could give some feedback :). Then we can fix and add npm run tslint in the CI script.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0