From 7d5511d41a24f4291609c4542a7b659827011425 Mon Sep 17 00:00:00 2001 From: Zackary Hall Date: Thu, 8 Oct 2020 09:14:57 -0600 Subject: [PATCH] [New] `label-has-associated-control`: Add glob support Fixes #720. --- .../label-has-associated-control-test.js | 6 +++ .../src/util/mayContainChildComponent-test.js | 48 +++++++++++++++++++ docs/rules/label-has-associated-control.md | 2 +- package.json | 3 +- src/util/mayContainChildComponent.js | 3 +- 5 files changed, 59 insertions(+), 3 deletions(-) diff --git a/__tests__/src/rules/label-has-associated-control-test.js b/__tests__/src/rules/label-has-associated-control-test.js index 782fb112f..ec8002f80 100644 --- a/__tests__/src/rules/label-has-associated-control-test.js +++ b/__tests__/src/rules/label-has-associated-control-test.js @@ -36,6 +36,9 @@ const htmlForValid = [ { code: '', options: [{ labelAttributes: ['label'], labelComponents: ['CustomLabel'] }] }, // Custom label attributes. { code: '