0
votes

I am new using tslint, in the past I used eslint for javascript files and now I want to use tslint as my typescript linting tool.

The thing is that using eslint I was able to specify that some of my errors where specifyed as NPM warnings, in this case the console logging.

**Console error using tsling**

As you can see my "warnings" are throwing an npm ERR, is there a way to tell that it should be npm WARN ???

1

1 Answers

1
votes

To change the severity of the rule an object must be used as the rule setting.

{
  // ...
  "rules": {
    "no-console": {
      "options": [true, "log"],
      "severity": "warning"
    }
  }
}

You may also wish to follow this link to the documentation.