Skip to content

Commit 5d5abee

Browse files
committed
Fix lint: add braces to switch case clauses
1 parent 6100f75 commit 5d5abee

2 files changed

Lines changed: 17 additions & 5 deletions

File tree

.claude/settings.local.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(git add:*)"
5+
]
6+
}
7+
}

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,23 +68,28 @@ function getExpectedTypeDescription(attrName) {
6868
return 'a valid value';
6969
}
7070
switch (attrDef.type) {
71-
case 'tristate':
71+
case 'tristate': {
7272
return 'a boolean or the string "mixed".';
73+
}
7374
case 'token': {
7475
const vals = attrDef.values.map((v) => (typeof v === 'boolean' ? v.toString() : v));
7576
return `a single token from the following: ${vals.join(', ')}.`;
7677
}
7778
case 'tokenlist': {
7879
return `a list of one or more tokens from the following: ${attrDef.values.join(', ')}.`;
7980
}
80-
case 'idlist':
81+
case 'idlist': {
8182
return 'a list of strings that represent DOM element IDs (idlist)';
82-
case 'id':
83+
}
84+
case 'id': {
8385
return 'a string that represents a DOM element ID';
84-
case 'integer':
86+
}
87+
case 'integer': {
8588
return 'an integer.';
86-
default:
89+
}
90+
default: {
8791
return `a ${attrDef.type}.`;
92+
}
8893
}
8994
}
9095

0 commit comments

Comments
 (0)