Skip to content

Commit

Permalink
Allow 'async/await' in 'resources' scripts (#1940)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Jun 2, 2019
1 parent ac07bb4 commit 844aab7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ rules:
- error
- selector: 'FunctionDeclaration[async=true]'
message: >
async functions are not allowed outside of the test suite because
async functions are not allowed inside package source code because
older versions of NodeJS do not support them without additional
runtime dependencies. Instead, use explicit Promises.
no-tabs: error
Expand Down Expand Up @@ -359,6 +359,7 @@ overrides:
parserOptions:
sourceType: script
rules:
no-restricted-syntax: off
no-console: off
no-sync: off
global-require: off

0 comments on commit 844aab7

Please sign in to comment.