Skip to content

Commit d47a0c9

Browse files
committed
Polish error messages to match original ember-template-lint wording
- tokenlist: add "one or more" and "the following" - token: add "the following" - id: "a string that represents a DOM element ID" - idlist: "a list of strings that represent DOM element IDs (idlist)" - tristate: use double quotes to match original
1 parent 77165a1 commit d47a0c9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

lib/rules/template-no-invalid-aria-attributes.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,22 +71,22 @@ function getExpectedTypeDescription(attrName) {
7171
case 'boolean':
7272
return 'a boolean (true or false)';
7373
case 'tristate':
74-
return "a boolean or the string 'mixed'";
74+
return 'a boolean or the string "mixed"';
7575
case 'integer':
7676
return 'an integer';
7777
case 'number':
7878
return 'a number';
7979
case 'token': {
8080
const vals = attrDef.values.map((v) => (typeof v === 'boolean' ? v.toString() : v));
81-
return `a single token from: ${vals.join(', ')}`;
81+
return `a single token from the following: ${vals.join(', ')}`;
8282
}
8383
case 'tokenlist': {
84-
return `a list of tokens from: ${attrDef.values.join(', ')}`;
84+
return `a list of one or more tokens from the following: ${attrDef.values.join(', ')}`;
8585
}
8686
case 'id':
87-
return 'a non-boolean string ID';
87+
return 'a string that represents a DOM element ID';
8888
case 'idlist':
89-
return 'a space-separated list of string IDs';
89+
return 'a list of strings that represent DOM element IDs (idlist)';
9090
case 'string':
9191
return 'a string';
9292
default:

0 commit comments

Comments
 (0)