Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

tslint:disable comments are ignored when using --type-check #3242

Closed
paxos opened this issue Sep 20, 2017 · 1 comment
Closed

tslint:disable comments are ignored when using --type-check #3242

paxos opened this issue Sep 20, 2017 · 1 comment

Comments

@paxos
Copy link

paxos commented Sep 20, 2017

Bug Report

  • tslint@5.7.0
  • typescript@2.5.2
  • Running TSLint via: (pick one) CLI

Actual behavior

Files including the /* tslint:disable */ comment on top should not be linted.

Expected behavior

Files are linted.

This only happens when the --type-check param is used. It is required to use this param, otherwise unused imports are not correctly reported.

@ajafff
Copy link
Contributor

ajafff commented Sep 21, 2017

The files are not linted, they are type checked. There is no way to ignore files while type checking.
So this is the behavior you opted into by using --type-check. If you don't want this behavior, you should stop using --type-check. TSLint will continue to work as expected without the flag.

Related: #1603 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants