Skip to content

ignores rules from tslint.json #92

Open
@vladgogo

Description

@vladgogo

I have this tslint.json:

{
  "rules": {
    "semicolon": [true, "always"],
    "no-consecutive-blank-lines": true
  }
}

And this code in example.ts:

if (true)
    var a = 1


var a = 1

I run:
node_modules/.bin/tsfmt ./js/*.ts -r --useTslint ./tslint.json

And nothing changes. But I expect semicolons to be added and extra empty lines to be removed.

It follows the rules from tsfmt.json though, related to indentation and whitespaces.
I also found that running tsfmt ./js/*.ts -r --useTslint ./tslint.json (without node_modules) produces very weird formatting that does not follow any rules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions