Skip to content

Commit e64b89b

Browse files
committed
Tooltip: fix eslint warnings
1 parent bb43f8a commit e64b89b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/Tooltip.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ class Tooltip extends Vue {
4949
/**
5050
* Preferred tooltip position as "[primary] [secondary]" or "[primary]".
5151
* The primary position can be either vertical or horizontal.
52-
* The secondary position, which is optional, should be of the opposite type of the primary position (i.e., horizontal if primary is vertical, and vice versa).
52+
* The secondary position, which is optional, should be of the opposite type of the primary position (i.e.,
53+
* horizontal if primary is vertical, and vice versa).
5354
* If only a single primary position is provided, the tooltip will be centered in the opposite direction.
5455
*/
5556
@Prop({
@@ -69,7 +70,8 @@ class Tooltip extends Vue {
6970
const isValidSecondaryVertical = !secondaryPosition || Object.values(Tooltip.VerticalPosition)
7071
.includes(secondaryPosition as Tooltip.VerticalPosition);
7172
72-
return (isValidPrimaryVertical && isValidSecondaryHorizontal) || (isValidPrimaryHorizontal && isValidSecondaryVertical);
73+
return (isValidPrimaryVertical && isValidSecondaryHorizontal)
74+
|| (isValidPrimaryHorizontal && isValidSecondaryVertical);
7375
},
7476
}) public preferredPosition!: string;
7577

0 commit comments

Comments
 (0)