nursery/noAstroComponentDefaultExport
nursery · since 2.6.9
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"nursery": {
"noAstroComponentDefaultExport": "error"
}
}
}
}Disallow runtime default exports in Astro component frontmatter.
---
export default function render() {}
------
export function helper() {}
export default interface Props {}
---Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
nursery/noAstroComponentDefaultExport
nursery · since 2.6.9
{
"linter": {
"rules": {
"nursery": {
"noAstroComponentDefaultExport": "error"
}
}
}
}Disallow the use of spread (...) syntax on accumulators.
Disallow conflicting content sources on Astro elements.
Disallow the use of Astro's set:html directive.
Disallow ineffective ordering in files.includes patterns.