Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

no-angle-bracket-type-assertion --fix misses cases that need extra parenthesis #2955

Closed
JoshuaKGoldberg opened this issue Jun 26, 2017 · 0 comments · Fixed by #3301
Closed

Comments

@JoshuaKGoldberg
Copy link
Contributor

Bug Report

  • TSLint version: 5.4.0
  • TypeScript version: 2.4 RC
  • Running TSLint via: (pick one) CLI

TypeScript code being linted

<number><any>flag & value

with tslint.json configuration:

{
    "rules": {
        "no-angle-bracket-type-assertion": true
    }
}

Actual behavior

flag as any as number & value

Expected behavior

(flag as any as number) & value
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants