Skip to content

Commit 768868b

Browse files
committed
fix error string
- the no-var-keyword error is too verbose, the convention elsewhere is "forbidden blah" (no-eval, no-bitwise) which is succint enough. detailed rule information is available on the readme.
1 parent d81369b commit 768868b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/rules/noSwitchCaseFallThroughRule.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
export class Rule extends Lint.Rules.AbstractRule {
18-
public static FAILURE_STRING_PART = "Expected a 'break' before ";
18+
public static FAILURE_STRING_PART = "expected a 'break' before ";
1919

2020
public apply(sourceFile: ts.SourceFile): Lint.RuleFailure[] {
2121
return this.applyWithWalker(new NoSwitchCaseFallThroughWalker(sourceFile, this.getOptions()));

src/rules/noVarKeywordRule.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
var OPTION_LEADING_UNDERSCORE = "no-var-keyword";
2020

2121
export class Rule extends Lint.Rules.AbstractRule {
22-
public static FAILURE_STRING = "use of the var-keyword is disallowed, use 'let' or 'const' instead";
22+
public static FAILURE_STRING = "forbidden var keyword";
2323

2424
public apply(sourceFile: ts.SourceFile): Lint.RuleFailure[] {
2525
var noVarKeywordWalker = new NoVarKeywordWalker(sourceFile, this.getOptions());

0 commit comments

Comments
 (0)