We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c4e204 commit 6a19dc1Copy full SHA for 6a19dc1
rules/preferWhileRule.ts
@@ -1,7 +1,7 @@
1
import * as ts from 'typescript';
2
import * as Lint from 'tslint';
3
4
-const FAIL_MESSAGE = `use while loop instead`;
+const FAIL_MESSAGE = 'Prefer `while` loops instead of `for` loops without an initializer and incrementor.';
5
6
export class Rule extends Lint.Rules.AbstractRule {
7
public apply(sourceFile: ts.SourceFile): Lint.RuleFailure[] {
test/rules/prefer-while/default/test.ts.lint
@@ -16,4 +16,4 @@ for (i = 1; --i;);
16
17
for (i = 1; i, --i);
18
19
-[fail]: use while loop instead
+[fail]: Prefer `while` loops instead of `for` loops without an initializer and incrementor.
0 commit comments