[space-infix-ops] no error when right type is function #4802
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
formatting
Related to whitespace/bracket formatting. We strongly recommend you use a formatter instead.
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Expected Result
I expect an error when running
npx eslint repro.ts
on the first two cases above:Actual Result
No error messages are printed by eslint when the right type is a function, e.g.
(() => string)
. If the left type is a function, errors are thrown correctly.Versions
@typescript-eslint/eslint-plugin
5.18.0
@typescript-eslint/parser
5.18.0
TypeScript
4.6.3
ESLint
8.13.0
node
16.13.0
The text was updated successfully, but these errors were encountered: