Reports functions that don't match the configured style (declaration vs expression).
✅ This rule is included in the ts preset.
There are two ways of defining functions in JavaScript: function declarations and function expressions assigned to variables.
Function declarations are hoisted to the top of their scope, while function expressions are not.
Enforcing a consistent style helps maintain code consistency across a codebase.
If your team doesn’t have a preference between function declarations and expressions, or if you want developers to choose the style that best fits each situation, you can disable this rule.