complexity/noUselessCatchBinding
complexity · since 2.2.3
Unsafe autofix
biome.json
{
"linter": {
"rules": {
"complexity": {
"noUselessCatchBinding": "error"
}
}
}
}try {
// Do something
} catch (unused) {}try {
// Do something
} catch ({ unused }) {}try {
// Do something
} catch ({ unused1, unused2 }) {}try {
// Do something
} catch (used) {
console.error(used);
}try {
// Do something
} catch ({ used }) {
console.error(used);
}try {
// Do something
} catch ({ used, unused }) {
console.error(used);
}Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
complexity/noUselessCatchBinding
complexity · since 2.2.3
{
"linter": {
"rules": {
"complexity": {
"noUselessCatchBinding": "error"
}
}
}
}Disallow template literals if interpolation and special-character handling are not needed
Require the JSON top-level value to be an array or object.
Disallow CSS properties, values, at-rules, functions, and selectors that are not part of the configured Baseline.
Disallow constants whose string value is the same as their uppercase name.
Require one description style throughout a GraphQL schema.