Reputation: 155
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.
As you can see my "warnings" are throwing an npm ERR, is there a way to tell that it should be npm WARN ???
Upvotes: 0
Views: 535
Reputation: 415
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.
Upvotes: 1