Merge pull request #33581 from microsoft/fix-lint-20190924

Fix lint on master
This commit is contained in:
Nathan Shively-Sanders 2019-09-24 09:57:04 -07:00 committed by GitHub
commit 2e985e723a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33314,6 +33314,7 @@ namespace ts {
// Modifiers are never allowed on properties except for 'async' on a method declaration
if (prop.modifiers) {
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
for (const mod of prop.modifiers!) { // TODO: GH#19955
if (mod.kind !== SyntaxKind.AsyncKeyword || prop.kind !== SyntaxKind.MethodDeclaration) {
grammarErrorOnNode(mod, Diagnostics._0_modifier_cannot_be_used_here, getTextOfNode(mod));