Skip to content

Commit 88ab040

Browse files
committed
chore(template-require-mandatory-role-attributes): drop dead createRequiredAttributeErrorMessage
The helper was unused after the messageId migration (the rule now uses aria-query-derived data + `messages.missingRequired` with a parameterized template). No references remained in the rule or its test file.
1 parent f68b237 commit 88ab040

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

lib/rules/template-require-mandatory-role-attributes.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
const { roles } = require('aria-query');
22

3-
function createRequiredAttributeErrorMessage(attrs, role) {
4-
if (attrs.length < 2) {
5-
return `The attribute ${attrs[0]} is required by the role ${role}`;
6-
}
7-
8-
return `The attributes ${attrs.join(', ')} are required by the role ${role}`;
9-
}
10-
113
// ARIA role values are whitespace-separated tokens compared ASCII-case-insensitively.
124
// Returns the list of normalised tokens, or undefined when the attribute is
135
// missing or dynamic.

0 commit comments

Comments
 (0)