We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a69825e commit 189357dCopy full SHA for 189357d
1 file changed
scripts/tslint/noIncrementDecrementRule.ts
@@ -28,7 +28,8 @@ class IncrementDecrementWalker extends Lint.RuleWalker {
28
}
29
30
visitIncrementDecrement(node: ts.UnaryExpression) {
31
- if (node.parent && (node.parent.kind === ts.SyntaxKind.ExpressionStatement || node.parent.kind === ts.SyntaxKind.ForStatement || node.parent.kind === ts.SyntaxKind.ElementAccessExpression)) {
+ if (node.parent && (node.parent.kind === ts.SyntaxKind.ExpressionStatement ||
32
+ node.parent.kind === ts.SyntaxKind.ForStatement)) {
33
return;
34
35
this.addFailure(this.createFailure(node.getStart(), node.getWidth(), Rule.POSTFIX_FAILURE_STRING));
0 commit comments