Skip to content

Commit

Permalink
fix: Hack to allow to level wait in ESLint parser
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed Jan 13, 2021
1 parent 3ca9c58 commit 846e2b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/index.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 846e2b9

Please sign in to comment.