aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tslint-config/rules/booleanNamingRule.ts
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-06-05 10:48:21 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-06-05 10:48:21 +0800
commit9778695b4ad1fd999eb79b01c768a2f2b9938917 (patch)
tree3c44cd0e16474966f88af5b75846c1d6b7521188 /packages/tslint-config/rules/booleanNamingRule.ts
parent70858603ed37de24ae47978a191b3f188f450182 (diff)
downloaddexon-sol-tools-9778695b4ad1fd999eb79b01c768a2f2b9938917.tar
dexon-sol-tools-9778695b4ad1fd999eb79b01c768a2f2b9938917.tar.gz
dexon-sol-tools-9778695b4ad1fd999eb79b01c768a2f2b9938917.tar.bz2
dexon-sol-tools-9778695b4ad1fd999eb79b01c768a2f2b9938917.tar.lz
dexon-sol-tools-9778695b4ad1fd999eb79b01c768a2f2b9938917.tar.xz
dexon-sol-tools-9778695b4ad1fd999eb79b01c768a2f2b9938917.tar.zst
dexon-sol-tools-9778695b4ad1fd999eb79b01c768a2f2b9938917.zip
Try enabling no-unused-variable...
Diffstat (limited to 'packages/tslint-config/rules/booleanNamingRule.ts')
-rw-r--r--packages/tslint-config/rules/booleanNamingRule.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/tslint-config/rules/booleanNamingRule.ts b/packages/tslint-config/rules/booleanNamingRule.ts
index a8e1dc390..6590f689b 100644
--- a/packages/tslint-config/rules/booleanNamingRule.ts
+++ b/packages/tslint-config/rules/booleanNamingRule.ts
@@ -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