eslint / typescript-eslint-parser

An ESLint custom parser which leverages TypeScript ESTree to allow for ESLint to lint TypeScript source code.
Other
915 stars 75 forks source link

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

Closed screendriver closed 5 years ago

screendriver commented 6 years ago

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 commented 6 years ago

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 commented 5 years ago

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

Thanks!