complexity/noFlatMapIdentity
complexity · since 1.7.0
Unsafe autofixRecommended
biome.json
{
"linter": {
"rules": {
"complexity": {
"noFlatMapIdentity": "error"
}
}
}
}array.flatMap((arr) => arr);array.flatMap((arr) => {return arr});array.flatMap((arr) => arr * 2);Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
complexity/noFlatMapIdentity
complexity · since 1.7.0
{
"linter": {
"rules": {
"complexity": {
"noFlatMapIdentity": "error"
}
}
}
}Disallow empty type parameters in type aliases and interfaces.
Disallow accessing namespace imports dynamically.
Disallow use of implicit any type on variable declarations.