Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

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

Closed
screendriver opened this issue Apr 16, 2018 · 2 comments
Closed

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

screendriver opened this issue Apr 16, 2018 · 2 comments

Comments

@screendriver
Copy link

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

@JamesHenry
Copy link
Member

I think a custom rule may need to be created in the plugin to handle this. It would be fantastic if one of the people affected by this issue could contribute to it.

@JamesHenry
Copy link
Member

This issue has been migrated to the new project: typescript-eslint/typescript-eslint#12

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants