Skip to content

Commit 77ffeac

Browse files
committed
🚨 Fix prettier errors
1 parent f6d91ee commit 77ffeac

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/rules/form-control-has-label.ts

+6-4
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,19 @@ function hasNestedLabelElement(
3737
return true;
3838
}
3939

40-
return (parent && parent.type === "VElement" && hasNestedLabelElement(parent, options));
40+
return (
41+
parent &&
42+
parent.type === "VElement" &&
43+
hasNestedLabelElement(parent, options)
44+
);
4145
}
4246

4347
/**
4448
* Check if the form control at least has an "id" to be associated with a label
4549
* Can't really check for the label with a matching "for" attribute, because
4650
* checking every element in the file may lead to bad performance.
4751
*/
48-
function hasIdForLabelElement(
49-
node: AST.VElement
50-
): boolean {
52+
function hasIdForLabelElement(node: AST.VElement): boolean {
5153
const id = getElementAttributeValue(node, "id");
5254

5355
return Boolean(id);

0 commit comments

Comments
 (0)