resources/assets/js/directives/tooltip.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function init has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const init = (el: ElementWithTooltip, binding: DirectiveBinding) => {
  const $tooltip = getOrCreateTooltip(el)

  // make sure the actual title is removed from the element, but keep a backup for the updated() hook calls
  $tooltip.querySelector<HTMLDivElement>('.tooltip-content')!.innerText = binding.value
Severity: Minor
Found in resources/assets/js/directives/tooltip.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status