nursery/useAwaitThenable
nursery · since 2.3.9
No autofix
biome.json
{
"linter": {
"rules": {
"nursery": {
"useAwaitThenable": "error"
}
}
}
}await 'value';const createValue = () => 'value';
await createValue();await Promise.resolve('value');
const createValue = async () => 'value';
await createValue();Examples from the Biome documentation.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
ESLint does not have this rule.
Oxlint does not have this rule.
nursery/useAwaitThenable
nursery · since 2.3.9
{
"linter": {
"rules": {
"nursery": {
"useAwaitThenable": "error"
}
}
}
}Require a value for Astro's client:only directive.
Enforce a consistent notation for font weights.
Reports CSS class selectors that are never referenced in any JSX or HTML file.
Enforce a consistent notation for the lightness of colors.
Require a valid deletion date on the @deprecated directive.