oxc/no-async-await Restriction ​
What it does ​
Disallows the use of async/await.
Example ​
javascript
async function foo() {
await bar();
return baz();
}
How to use ​
To enable this rule in the CLI or using the config file, you can use:
bash
oxlint --deny oxc/no-async-await
json
{
"rules": {
"oxc/no-async-await": "error"
}
}