Open
Description
We are getting linting errors with this rule for simple JSX such as:
<label htmlFor="foo">Foo</label>
<input id="foo" type="text" />
// or
<label>
Foo
<input type="text" />
</label>
Both result in Error: A control must be associated with a text label jsx-a11y/control-has-associated-label
Our rule is setup as:
'jsx-a11y/control-has-associated-label': 'error',
Do we need to pass the second argument object to the rule? or should this be supported out of the box?