LouisMazel/maz-ui

View on GitHub
packages/lib/modules/composables/use-window-size.ts

Summary

Maintainability
A
1 hr
Test Coverage
F
47%

Function useWindowSize has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function useWindowSize(options: UseWindowSizeOptions = {}) {
  const {
    internalWindow = isClient() ? window : undefined,
    initialWidth = Number.POSITIVE_INFINITY,
    initialHeight = Number.POSITIVE_INFINITY,
Severity: Minor
Found in packages/lib/modules/composables/use-window-size.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status