File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -37,17 +37,19 @@ function hasNestedLabelElement(
37
37
return true ;
38
38
}
39
39
40
- return ( parent && parent . type === "VElement" && hasNestedLabelElement ( parent , options ) ) ;
40
+ return (
41
+ parent &&
42
+ parent . type === "VElement" &&
43
+ hasNestedLabelElement ( parent , options )
44
+ ) ;
41
45
}
42
46
43
47
/**
44
48
* Check if the form control at least has an "id" to be associated with a label
45
49
* Can't really check for the label with a matching "for" attribute, because
46
50
* checking every element in the file may lead to bad performance.
47
51
*/
48
- function hasIdForLabelElement (
49
- node : AST . VElement
50
- ) : boolean {
52
+ function hasIdForLabelElement ( node : AST . VElement ) : boolean {
51
53
const id = getElementAttributeValue ( node , "id" ) ;
52
54
53
55
return Boolean ( id ) ;
You can’t perform that action at this time.
0 commit comments