Skip to content

no-extra-parens error when doing a type assertion #12

Closed
@JamesHenry

Description

@JamesHenry

This issue was initially reported here: eslint/typescript-eslint-parser#465


What version of TypeScript are you using?

2.8.1

What version of typescript-eslint-parser are you using?

14.0.0

What code were you trying to parse?

t.true((me.get as SinonStub).calledWithExactly('/foo', other));

What did you expect to happen?

ESLint should not complain.

What happened?

error | Gratuitous parentheses around expression | no-extra-parens

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions