This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 887
no-unused-variable interferes with other type checked rules #2736
Labels
Comments
CSchulz
changed the title
type-check rules collides with external library
type-check rules collide with external library
May 11, 2017
4 tasks
My reproducer is still broken with tslint 5.4. A workaround is the usage of type assertion: protected createDefaultLogMessage(msg: LogMessage): string {
const format: LogFormat = msg.logGroupRule.logFormat;
let result: string = '';
if (format.showTimeStamp) {
result += <string>MessageFormatUtils.renderDate(msg.date, format.dateFormat) + ' ';
} |
ajafff
changed the title
type-check rules collide with external library
no-unused-variable interferes with other type checked rules
Nov 5, 2017
This was referenced Nov 5, 2017
Any plans on fixing this? |
I can no longer get this to reproduce with TypeScript 3.1.3 and TSLint 5.11. Hilarious bug, likely aged away. Closing for housekeeping purposes, but please do post more source code & versions if it pops up again! |
Merged
2 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug Report
TypeScript code being linted
https://github.com/CSchulz/tslint-type-check-rule-collision
with
tslint.json
configuration:Actual behavior
Expected behavior
Nothing should violate.
If you disable the rule no-unused-variable it works fine.
The text was updated successfully, but these errors were encountered: