Skip to content

Commit

Permalink
microsoft-typescript/debug-assert
Browse files Browse the repository at this point in the history
  • Loading branch information
a-tarasyuk committed Jun 14, 2019
1 parent f6ccfb3 commit 1ccb4d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Expand Up @@ -57,7 +57,7 @@
"microsoft-typescript/no-double-space": "off",
"microsoft-typescript/boolean-trivia": "off",
"microsoft-typescript/no-in-operator": "off",
"microsoft-typescript/debug-assert": "off",
"microsoft-typescript/debug-assert": "error",
"microsoft-typescript/no-keywords": "off",

"arrow-body-style": "off",
Expand Down
2 changes: 1 addition & 1 deletion src/services/services.ts
Expand Up @@ -35,7 +35,7 @@ namespace ts {
}

private assertHasRealPosition(message?: string) {
// tslint:disable-next-line:debug-assert
// eslint-disable-next-line microsoft-typescript/debug-assert
Debug.assert(!positionIsSynthesized(this.pos) && !positionIsSynthesized(this.end), message || "Node must have a real position for this operation");
}

Expand Down

0 comments on commit 1ccb4d2

Please sign in to comment.