diff --git a/README.md b/README.md index c17f530afa..2824b55a74 100644 --- a/README.md +++ b/README.md @@ -197,6 +197,7 @@ rules in templates can be disabled with eslint directives with mustache or html | [template-no-nested-interactive](docs/rules/template-no-nested-interactive.md) | disallow nested interactive elements | | | | | [template-no-nested-landmark](docs/rules/template-no-nested-landmark.md) | disallow nested landmark elements | | | | | [template-no-pointer-down-event-binding](docs/rules/template-no-pointer-down-event-binding.md) | disallow pointer down event bindings | | | | +| [template-require-input-label](docs/rules/template-require-input-label.md) | require label for form input elements | | | | | [template-require-lang-attribute](docs/rules/template-require-lang-attribute.md) | require lang attribute on html element | | | | | [template-require-mandatory-role-attributes](docs/rules/template-require-mandatory-role-attributes.md) | require mandatory ARIA attributes for ARIA roles | | | | | [template-require-media-caption](docs/rules/template-require-media-caption.md) | require captions for audio and video elements | | | | diff --git a/docs/rules/template-require-input-label.md b/docs/rules/template-require-input-label.md new file mode 100644 index 0000000000..0907383514 --- /dev/null +++ b/docs/rules/template-require-input-label.md @@ -0,0 +1,126 @@ +# ember/template-require-input-label + + + +Users with assistive technology need user-input form elements to have +associated labels. + +The rule applies to the following HTML tags: + +- `` +- `