Sfoglia il codice sorgente

chore: disallow async/await usage in src

Evan You 4 anni fa
parent
commit
e47b1ca6d6
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      .eslintrc.js

+ 2 - 1
.eslintrc.js

@@ -20,7 +20,8 @@ module.exports = {
     'no-restricted-syntax': [
       'error',
       'ObjectExpression > SpreadElement',
-      'ObjectPattern > RestElement'
+      'ObjectPattern > RestElement',
+      'AwaitExpression'
     ]
   },
   overrides: [