Skip to content

Commit

Permalink
fix error string
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
ashwinr committed Jun 21, 2015
1 parent d81369b commit 768868b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rules/noSwitchCaseFallThroughRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

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

public apply(sourceFile: ts.SourceFile): Lint.RuleFailure[] {
return this.applyWithWalker(new NoSwitchCaseFallThroughWalker(sourceFile, this.getOptions()));
Expand Down
2 changes: 1 addition & 1 deletion src/rules/noVarKeywordRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
var OPTION_LEADING_UNDERSCORE = "no-var-keyword";

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

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

0 comments on commit 768868b

Please sign in to comment.