I cannot find a formatting option during my lifetime to disable automatic line breaks inside curly braces of a function. Line breaks are automatically added for both arrow functions and regular functions. This is frustrating when, for example, passing any operational functions to other functions (like a hook or callback), i.e. wrapWithCommonErrors(() => {}).
function() {}
becomes
function() {
}
() => {}
becomes
() => {
}
source
share