Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
Fix grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenni committed Apr 23, 2018
1 parent f502cd1 commit 6970ad8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/rules/banTsIgnoreRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class Rule extends Lint.Rules.AbstractRule {
};
/* tslint:disable:object-literal-sort-keys */

public static FAILURE_STRING = 'Do not use "// @ts-ignore" comments because it suppresses compilation errors.';
public static FAILURE_STRING = 'Do not use "// @ts-ignore" comments because they suppress compilation errors.';

public apply(sourceFile: ts.SourceFile): Lint.RuleFailure[] {
return this.applyWithFunction(sourceFile, walk);
Expand Down
10 changes: 5 additions & 5 deletions test/rules/ban-ts-ignore/test.ts.lint
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
if (false) {
// @ts-ignore: Unreachable code error
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [Do not use "// @ts-ignore" comments because it suppresses compilation errors.]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [Do not use "// @ts-ignore" comments because they suppress compilation errors.]
console.log("hello"); // Random comments.
}

var x = 0;

/// @ts-ignore Triple-slash
~~~~~~~~~~~~~~~~~~~~~~~~~~~ [Do not use "// @ts-ignore" comments because it suppresses compilation errors.]
~~~~~~~~~~~~~~~~~~~~~~~~~~~ [Do not use "// @ts-ignore" comments because they suppress compilation errors.]
x();

/// @ts-ignore
~~~~~~~~~~~~~~ [Do not use "// @ts-ignore" comments because it suppresses compilation errors.]
~~~~~~~~~~~~~~ [Do not use "// @ts-ignore" comments because they suppress compilation errors.]
x(
2,
3);

// come comment

// @ts-ignore Multiple comments
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [Do not use "// @ts-ignore" comments because it suppresses compilation errors.]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [Do not use "// @ts-ignore" comments because they suppress compilation errors.]

// some other comment

Expand All @@ -28,6 +28,6 @@ x(
x();

x( // @ts-ignore inline
~~~~~~~~~~~~~~~~~~~~ [Do not use "// @ts-ignore" comments because it suppresses compilation errors.]
~~~~~~~~~~~~~~~~~~~~ [Do not use "// @ts-ignore" comments because they suppress compilation errors.]
2,
3);

0 comments on commit 6970ad8

Please sign in to comment.