unicorn/no-unused-array-method-return
eslint-plugin-unicorn
import unicorn from "eslint-plugin-unicorn";
export default [
{
plugins: { unicorn },
rules: {
"unicorn/no-unused-array-method-return": "error",
},
},
];This rule is deprecated. Check its documentation for a replacement before enabling it.
Replaced by unicorn/no-unused-builtin-method-return which covers more cases.
No code example for this rule
The linters' documentation does not include one we could extract.
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.
unicorn/no-unused-array-method-return
eslint-plugin-unicorn
import unicorn from "eslint-plugin-unicorn";
export default [
{
plugins: { unicorn },
rules: {
"unicorn/no-unused-array-method-return": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Prefer using using/await using over manual try/finally resource disposal.
Disallow arguments that match their parameter defaults.