You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
Is your feature request related to a problem? Please describe.
I want to run TSLint from a Gulp task. Therefor I am using TSLint as a Node.js library. Unfortunately I could not find out how to pass a tsconfig.json file (--project) to the Linter to determine which files will be linted. The Linter.lint method only seems to support a configuration.
Describe the solution you'd like
I need an API equivalent to tslint --project tsconfig.json --config tslint.json.
The signature of the current lint method looks like this:
Describe alternatives you've considered
At the moment I am doing the following to achieve my tasks (but it involves a huge chunk of code because of the current API all files must be traversed by hand):
@bennynLinter accepts a program in its constructor, then lint will use files from the program. Is that what you're looking for? It's unclear to me from your description why that isn't acceptable?
@JoshuaKGoldbergprogram is exactly what I was looking for. Thanks! I just couldn't find it because the parameter for the TSLint CLI is called project (and not program).
Feature request
Is your feature request related to a problem? Please describe.
I want to run TSLint from a Gulp task. Therefor I am using TSLint as a Node.js library. Unfortunately I could not find out how to pass a
tsconfig.json
file (--project
) to theLinter
to determine which files will be linted. TheLinter.lint
method only seems to support aconfiguration
.Describe the solution you'd like
I need an API equivalent to
tslint --project tsconfig.json --config tslint.json
.The signature of the current
lint
method looks like this:It could be overloaded to:
Another good approach could be this:
Describe alternatives you've considered
At the moment I am doing the following to achieve my tasks (but it involves a huge chunk of code because of the current API all files must be traversed by hand):
The text was updated successfully, but these errors were encountered: