Showing 19 of 19 total issues
File useIdleTimer.tsx
has 611 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { useEffect, useRef, useCallback, useMemo } from 'react'
import { TabManager } from './TabManager'
import { DEFAULT_ELEMENT, DEFAULT_EVENTS } from './utils/defaults'
File demo.tsx
has 497 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { useRouter } from 'next/router'
import { useEffect, useState, useRef, useCallback } from 'react'
import { useIdleTimer, MessageType, workerTimers } from 'react-idle-timer'
import { motion, useMotionValue } from 'framer-motion'
import {
File Demo.tsx
has 328 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { useState, useRef, MutableRefObject, BaseSyntheticEvent } from 'react'
import { useTranslation } from 'next-i18next'
import {
chakra,
Box,
File ControlDrawer.tsx
has 276 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { useRef, useState, BaseSyntheticEvent } from 'react'
import { IIdleTimer, IIdleTimerProps } from 'react-idle-timer'
import {
Drawer,
DrawerHeader,
Avoid too many return
statements within this function. Open
Open
return result
Avoid too many return
statements within this function. Open
Open
return result
Avoid too many return
statements within this function. Open
Open
return result
Avoid too many return
statements within this function. Open
Open
return result
Avoid too many return
statements within this function. Open
Open
return result
Avoid too many return
statements within this function. Open
Open
return result
Avoid too many return
statements within this function. Open
Open
return false
Avoid too many return
statements within this function. Open
Open
return err.message
Avoid too many return
statements within this function. Open
Open
return result
Avoid too many return
statements within this function. Open
Open
return false
Avoid too many return
statements within this function. Open
Open
return true
Avoid too many return
statements within this function. Open
Open
return result
Avoid too many return
statements within this function. Open
Open
return result
Avoid too many return
statements within this function. Open
Open
return result
Avoid too many return
statements within this function. Open
Open
return result