diff --git a/lib/index.js b/lib/index.js index cabb501..5af5c03 100644 --- a/lib/index.js +++ b/lib/index.js @@ -29,7 +29,8 @@ class Block { } add(text) { - this.texts.push(text); + // HACK: ESLint can't currently process top level await functions that EJS uses + this.texts.push(text.replace(/await /, ' ')); } addFinal(thisText, endLine, endCol) {