Currently the path to tsconfig.json can only be set via the -p/--project CLI arg, so I have to run tslint like this (usually via a script):
tslint -p tsconfig.json
It'd be nice to be able to set this via tslint.json, so it doesn't always need to be set via CLI:
{
"project": "./tsconfig.json",
"rulesDirectory": ...
"rules": ...
}
This would also be useful for editor plugins, since it removes the need for the plugin to provide the project-specific path to tsconfig.json when running tslint.
+1, but it should be nested inside the linterOptions object
{
"extends": "tslint:recommended",
"linterOptions": {
"project": "src/tsconfig.json"
},
"rules": {}
}
I keep getting this warning in vscode because of the lack of this feature: Warning: The 'no-boolean-literal-compare' rule requires type information.
TSLint is being deprecated and no longer accepting pull requests for major new changes or features. See #4534. ๐ฑ
If you'd like to see this change implemented, you have two choices:
๐ It was a pleasure open sourcing with you!
_If you believe this message was posted here in error, please comment so we can re-open the issue!_
๐ค Beep boop! ๐ TSLint is deprecated ๐ _(#4534)_ and you should switch to typescript-eslint! ๐ค
๐ This issue is being locked to prevent further unnecessary discussions. Thank you! ๐
Most helpful comment
I keep getting this warning in vscode because of the lack of this feature:
Warning: The 'no-boolean-literal-compare' rule requires type information.