Last active
July 31, 2018 15:41
-
-
Save lukehorvat/3a51e56a22cc032e75e467eafb300b7f to your computer and use it in GitHub Desktop.
ESLint rule to disallow generators and async/await. Since AST selectors are used, ESLint 3.18.0 (or higher) is required.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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
no-restricted-syntax
rule