Open nighto opened 1 day ago
Hello @nighto, please provide a minimal reproduction. You can use one of the following options:
npm create @biomejs/biome-reproduction
Issues marked with S-Needs repro
will be closed if they have no activity within 3 days.
Please provide a minimal repository
Environment information
Rule name
lint/a11y/noLabelWithoutControl
Playground link
https://biomejs.dev/playground/?code=YwBvAG4AcwB0ACAAQwBoAGUAYwBrAGIAbwB4ACAAPQAgACgAKQAgAD0APgAgACgACgAgACAAPABpAG4AcAB1AHQAIAB0AHkAcABlAD0AIgBjAGgAZQBjAGsAYgBvAHgAIgAvAD4ACgApADsACgAKAGMAbwBuAHMAdAAgAEwAYQBiAGUAbAAgAD0AIAAoACkAIAA9AD4AIAAoAAoAIAAgADwAPgAKACAAIAAgACAAewAvACoAIABiAGkAbwBtAGUALQBpAGcAbgBvAHIAZQAgAGwAaQBuAHQALwBhADEAMQB5AC8AbgBvAEwAYQBiAGUAbABXAGkAdABoAG8AdQB0AEMAbwBuAHQAcgBvAGwAOgAgAHMAZQBlAG0AcwAgAHQAbwAgAGIAZQAgAHcAbwByAGsAaQBuAGcAIABoAGUAcgBlACAAbwBuACAAdABoAGUAIABwAGwAYQB5AGcAcgBvAHUAbgBkACwAIABiAHUAdAAgAG4AbwB0ACAAbwBuACAAbQB5ACAAYwBvAGQAZQAgAHcAaABlAG4AIAByAHUAbgBuAGkAbgBnACAAbwBuACAAQwBMAEkAIAAqAC8AfQAKACAAIAAgACAAPABsAGEAYgBlAGwAPgAKACAAIAAgACAAIAAgADwAQwBoAGUAYwBrAGIAbwB4ACAALwA%2BAAoAIAAgACAAIAA8AC8AbABhAGIAZQBsAD4ACgAgACAAPAAvAD4ACgApADsACgA%3D
Expected result
For some reason, it seems to be working on the Playground, but not on the actual code that I am trying to lint. https://github.com/fortanix/baklava/blob/feature/form/src/components/forms/controls/CheckboxField/CheckboxField.tsx#L103
Code of Conduct