microsoft-typescript/debug-assert
This commit is contained in:
parent
f6ccfb39cc
commit
1ccb4d2d82
|
@ -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",
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue