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

"restrict-plus-operands" doesn't understand BigInt #4741

Closed
bowenni opened this issue May 22, 2019 · 0 comments · Fixed by #4814
Closed

"restrict-plus-operands" doesn't understand BigInt #4741

bowenni opened this issue May 22, 2019 · 0 comments · Fixed by #4814

Comments

@bowenni
Copy link
Contributor

bowenni commented May 22, 2019

Bug Report

  • TSLint version: 5.16.0
  • TypeScript version: 3.4.0
  • Running TSLint via: CLI

TypeScript code being linted

BigInt(1) + BigInt(2);

with tslint.json configuration:

{
  "rules": {
    "restrict-plus-operands": true
  }
}

Actual behavior

Operands of '+' operation must either be both strings or both numbers, but found bigint + bigint

Expected behavior

No errors.

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.

3 participants