Tslint: Enable --project (tsconfig.json) to be set in tslint.json

Created on 30 Apr 2018  ยท  4Comments  ยท  Source: palantir/tslint

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.

Related to https://github.com/palantir/tslint/issues/2788

Accepting PRs Enhancement ๐ŸŒน R.I.P. ๐ŸŒน

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.

All 4 comments

+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.

๐Ÿ’€ _It's time!_ ๐Ÿ’€

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:

  • Recommended: Check if this is available in ESLint + typescript-eslint โœ…
  • _Not Recommended: Fork TSLint locally_ ๐Ÿคทโ€โ™‚๏ธ

๐Ÿ‘‹ 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! ๐Ÿ‘‹

Was this page helpful?
0 / 5 - 0 ratings