implicit-arrow-linebreak
eslint
Safe autofix
eslint.config.js
export default [
{
rules: {
"implicit-arrow-linebreak": "error",
},
},
];This rule is deprecated. Check its documentation for a replacement before enabling it.
(foo) =>
bar;
(foo) =>
(bar);
(foo) =>
bar =>
baz;
(foo) =>
(
bar()
);(foo) => bar;
(foo) => (bar);
(foo) => bar => baz;(foo) => bar;
(foo) => (bar);
(foo) => bar => baz;
(foo) => (
bar()
);
// functions with block bodies allowed with this rule using any style
// to enforce a consistent location for this case, see the rule: `brace-style`
(foo) => {
return bar();
}
(foo) =>
{
return bar();
}(foo) =>
bar;
(foo) =>
(bar);
(foo) =>
bar =>
baz;Examples from the ESLint documentation.
implicit-arrow-linebreak
eslint
export default [
{
rules: {
"implicit-arrow-linebreak": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Require return statements to either always or never specify values
Disallow dangling underscores in identifiers
Disallow variable declarations from shadowing variables declared in the outer scope