diff --git a/docs/form-control-has-label.md b/docs/form-control-has-label.md index 82a03f89..443b5d8c 100644 --- a/docs/form-control-has-label.md +++ b/docs/form-control-has-label.md @@ -16,7 +16,12 @@ This rule takes one optional object argument of type object: "vuejs-accessibility/form-control-has-label": [ "error", { - "labelComponents": ["CustomLabel"], + "labelComponents": [ + "CustomLabel", + ], + "labelComponentsWithRequiredAttributes": [ + { "name": "CustomComponentWithRequiredAttribute", "requiredAttributes": ["label"] }, + ] "controlComponents": ["CustomInput"] } ] @@ -26,6 +31,8 @@ This rule takes one optional object argument of type object: For the `labelComponents` option, these strings determine which elements (**always including** `