Right now this code:
function loadWidgetComponent(widgetId: WidgetId) { const Component = getWidgetComponent(widgetId); if (!Component) return null; return <Component />; }
Is converted to:
function loadWidgetComponent(widgetId: WidgetId) { const component = getWidgetComponent(widgetId); if (!component) return null; return <Component />; }
Environment information
Rule name
lint/style/useNamingConvention
Playground link
https://biomejs.dev/playground/?code=ZgB1AG4AYwB0AGkAbwBuACAAbABvAGEAZABXAGkAZABnAGUAdABDAG8AbQBwAG8AbgBlAG4AdAAoAHcAaQBkAGcAZQB0AEkAZAA6ACAAVwBpAGQAZwBlAHQASQBkACkAIAB7AAoAIAAgAGMAbwBuAHMAdAAgAEMAbwBtAHAAbwBuAGUAbgB0ACAAPQAgAGcAZQB0AFcAaQBkAGcAZQB0AEMAbwBtAHAAbwBuAGUAbgB0ACgAdwBpAGQAZwBlAHQASQBkACkAOwAKACAAIABpAGYAIAAoACEAQwBvAG0AcABvAG4AZQBuAHQAKQAgAHIAZQB0AHUAcgBuACAAbgB1AGwAbAA7AAoAIAAgAHIAZQB0AHUAcgBuACAAPABDAG8AbQBwAG8AbgBlAG4AdAAgAC8APgA7AAoAfQA%3D
Expected result
Right now this code:
function loadWidgetComponent(widgetId: WidgetId) { const Component = getWidgetComponent(widgetId); if (!Component) return null; return <Component />; }
Is converted to:
function loadWidgetComponent(widgetId: WidgetId) { const component = getWidgetComponent(widgetId); if (!component) return null; return <Component />; }
Code of Conduct