Why are bitwise operators not allowed in tslint?

后端 未结 3 1206
耶瑟儿~
耶瑟儿~ 2021-01-01 11:24

We can\'t use bitwise operators in templates, but why are they not allowed by tslint within TypeScript code?

\"no-bitwise\": true,
3条回答
  •  离开以前
    2021-01-01 11:48

    If you look at the Docs

    "Bitwise operators are very rare in JavaScript programs"

    anyhow you can disable the bitwise option to stop the warnings.

提交回复
热议问题