microsoft-typescript/debug-assert

This commit is contained in:
Alexander T 2019-06-14 10:00:33 +03:00
parent f6ccfb39cc
commit 1ccb4d2d82
2 changed files with 2 additions and 2 deletions

View file

@ -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",

View file

@ -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");
}