Try enabling no-unused-variable...

This commit is contained in:
fragosti
2018-06-04 19:48:21 -07:00
parent 70858603ed
commit 9778695b4a
180 changed files with 110 additions and 420 deletions

View File

@@ -3,7 +3,7 @@ import * as Lint from 'tslint';
import * as ts from 'typescript';
const VALID_BOOLEAN_PREFIXES = ['is', 'does', 'should', 'was', 'has', 'can', 'did', 'would', 'are'];
// tslint:disable:no-unnecessary-type-assertion
export class Rule extends Lint.Rules.TypedRule {
public static FAILURE_STRING = `Boolean variable names should begin with: ${VALID_BOOLEAN_PREFIXES.join(', ')}`;
@@ -66,3 +66,4 @@ function handleBooleanNaming(
}
}
}
// tslint:enable:no-unnecessary-type-assertion