palantir/grunt-tslint

rulesDirectory is ignored

Opened this issue · 1 comments

The options object in the tslint has the configuration property, AND an optional property named rulesDirectory. tslint will NOT read the rulesDirectory from the configuration object.

You can see that in the tslint-cli they read it from the configuration and send it to the Linter...

It's a bit misleading because you would think that tslint will read the rulesDirectory from the configuration, but it does not, only the tslint-cli does...

All you have to do, is check if this property exist on the configuration object, and if it does, add it to the options object.

Created a PR