Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ESLint rule to disallow generators and async/await. Since AST selectors are used, ESLint 3.18.0 (or higher) is required.
{
"rules": {
"no-restricted-syntax": [
"error",
"[generator=true]",
"[async=true]",
"AwaitExpression"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.