aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tslint-config/rules
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-05-16 21:14:31 +0800
committerFabio Berger <me@fabioberger.com>2018-05-16 21:14:31 +0800
commitb2f362225c5c03526852fc6b997241faba6d1231 (patch)
tree39a505b41cd4728ecadda7315945e4f46b9bd73a /packages/tslint-config/rules
parent40ed59ce28ca5c60a663ae9524f5fe4615d3cd82 (diff)
downloaddexon-0x-contracts-b2f362225c5c03526852fc6b997241faba6d1231.tar
dexon-0x-contracts-b2f362225c5c03526852fc6b997241faba6d1231.tar.gz
dexon-0x-contracts-b2f362225c5c03526852fc6b997241faba6d1231.tar.bz2
dexon-0x-contracts-b2f362225c5c03526852fc6b997241faba6d1231.tar.lz
dexon-0x-contracts-b2f362225c5c03526852fc6b997241faba6d1231.tar.xz
dexon-0x-contracts-b2f362225c5c03526852fc6b997241faba6d1231.tar.zst
dexon-0x-contracts-b2f362225c5c03526852fc6b997241faba6d1231.zip
Fix comments
Diffstat (limited to 'packages/tslint-config/rules')
-rw-r--r--packages/tslint-config/rules/booleanNamingRule.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/tslint-config/rules/booleanNamingRule.ts b/packages/tslint-config/rules/booleanNamingRule.ts
index bc0b42e71..f673afc6a 100644
--- a/packages/tslint-config/rules/booleanNamingRule.ts
+++ b/packages/tslint-config/rules/booleanNamingRule.ts
@@ -41,7 +41,7 @@ function checkNodeForViolations(ctx: Lint.WalkContext<void>, node: ts.Node, tc:
break;
default:
- // noop
+ _.noop();
}
}
@@ -53,7 +53,6 @@ function handleBooleanNaming(
const nodeName = node.name;
const variableName = nodeName.getText();
const lowercasedName = _.toLower(variableName);
- // tslint:disable-next-line
const typeNode = tc.getTypeAtLocation(node);
const typeName = (typeNode as any).intrinsicName;
if (typeName === 'boolean') {