-
Notifications
You must be signed in to change notification settings - Fork 885
Conversation
Does this now mean that type checking is always enabled when running tslint? If so, I like it! |
@ChrisMBarr type checking and enabling typed rules is not the same thing: Type checking does a full check of your entire project to find compile errors before the actual linting is done. It does not affect the lint result. This is deprecated now and will be removed in a future release. Type checking should be done by the compiler, not TSLint. Typed rules are not enabled by default. Technically that's not possible. But you only need |
Yes, that's what I meant - thanks! To be fair though a "typed rule" was enabled with a CLI flag named But this is a good change, I like it. 1 flag to enable this feature instead of 2 is much better. |
Just following up on this... I am running Per advice in this PR, I have removed the "tslint": "tslint --project ./tsconfig.json", The issue I now have is that in VS Code no longer highlights type errors. I realise that I have done some searching, but not yet found a solution... any ideas? Thanks in advance. Matt |
Oops... looks like it was just some kind of refresh issue. I restarted VS Code a couple of times, and now it all works as expected. As you were! :-D |
PR checklist
Overview of change:
Deprecated
--type-check
. It's no longer necessary. Most users don't read the changelog and may not have noticed it.It breaks consumers that expect a certain output format. And it confuses users, because
--exclude
does not work as expected.We should remove it in v6.0
Is there anything you'd like reviewers to focus on?
CHANGELOG.md entry:
[deprecation] CLI argument
--type-check
is no longer necessary and will be removed in the next major version