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

for(;;) whitespace issue #2934

Closed
benny-medflyt opened this issue Jun 17, 2017 · 2 comments
Closed

for(;;) whitespace issue #2934

benny-medflyt opened this issue Jun 17, 2017 · 2 comments

Comments

@benny-medflyt
Copy link

Bug Report

  • TSLint version: 5.4.3
  • TypeScript version: 2.3.4
  • Running TSLint via: CLI

TypeScript code being linted

for(; ;) {
    // Do Nothing
}

with tslint.json configuration:

{
    "extends": ["tslint:latest"],
    "rules": {
        "whitespace": [true,
            "check-separator"
        ],
    }
}

Actual behavior

ERROR: 1:13  whitespace  missing whitespace

Expected behavior

Should successfully pass tlint.

tslint wants the code to look like for (; ; ) (note the extra whitespace). This is ugly, and is also goes against the default way that Visual Studio Code formats it

@timocov
Copy link
Contributor

timocov commented Aug 25, 2017

Duplicate of #2382

@ajafff
Copy link
Contributor

ajafff commented Aug 25, 2017

Fixed by #3132

@ajafff ajafff closed this as completed Aug 25, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants