As the examples already show, for async/await and generators, ternaries require brackets.
function* unicorn() {
yield (test ? a : b);
}
async function unicorn() {
await (test ? a() : b());
}
One might argue this results in less readable / more confusing code. An option to disable the rule for those cases would be great.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too