Skip to content

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

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy