You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would warn about using top-level awaits as it conflicts with require(esm).
Unfortunately no-restricted-syntax cannot be used as the following should be ignored:
files with a shebang or without exports
files called from package.json scripts
What type of rule is this?
Warns about a potential problem
Example code
awaitfn();forawait(constxofasyncGenerator()){}
Participation
I am willing to submit a pull request to implement this rule.
Uh oh!
There was an error while loading. Please reload this page.
Rule details
It would warn about using top-level awaits as it conflicts with
require(esm)
.Unfortunately
no-restricted-syntax
cannot be used as the following should be ignored:package.json
scriptsWhat type of rule is this?
Warns about a potential problem
Example code
Participation
Additional comments
This rule was discussed in the eslint repo but declined with a reference to open here.
The text was updated successfully, but these errors were encountered: