complexity/noRedundantDefaultExport
complexity · since 2.3.14
No autofix
biome.json
{
"linter": {
"rules": {
"complexity": {
"noRedundantDefaultExport": "error"
}
}
}
}Checks if a default export exports the same symbol as a named export.
export const foo = 42;
export default foo;export const foo = 42;
export default 42;Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
complexity/noRedundantDefaultExport
complexity · since 2.3.14
{
"linter": {
"rules": {
"complexity": {
"noRedundantDefaultExport": "error"
}
}
}
}Disallow variables from evolving into any type through reassignments.
Disallow constants whose string value is the same as their uppercase name.
Require the JSON top-level value to be an array or object.