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

False positive: No void expression #4556

Closed
VincentLanglet opened this issue Feb 28, 2019 · 0 comments · Fixed by #4606
Closed

False positive: No void expression #4556

VincentLanglet opened this issue Feb 28, 2019 · 0 comments · Fixed by #4606

Comments

@VincentLanglet
Copy link
Contributor

Bug Report

  • TSLint version: 5.13.0
  • TypeScript version: 3.3.3333
  • Running TSLint via: (pick one) CLI

TypeScript code being linted

!!data ? console.info(message, data) : console.info(message);

with tslint.json configuration:

"no-void-expression": [true, "ignore-arrow-function-shorthand"],

Actual behavior

Error

Expected behavior

No error

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