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

binary-expression-operand-order wrong for all-numeric expressions #2866

Closed
sebek64 opened this issue Jun 2, 2017 · 0 comments
Closed

binary-expression-operand-order wrong for all-numeric expressions #2866

sebek64 opened this issue Jun 2, 2017 · 0 comments

Comments

@sebek64
Copy link

sebek64 commented Jun 2, 2017

Bug Report

  • TSLint version: 5.4.2
  • TypeScript version: 5.3.3
  • Running TSLint via: (pick one) CLI

TypeScript code being linted

private static readonly x = 1000 * 3600 * 24 * 7;

with tslint.json configuration:

"binary-expression-operand-order": true

Actual behavior

Produces an error:

Literal expression should be on the right-hand side of a binary expression.

Expected behavior

Should not produce an error.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants