fix: eslint warnings (#278)

This commit is contained in:
kimatata
2025-08-30 23:38:07 +09:00
committed by GitHub
parent f76a3cdaf5
commit a7882dd769
3 changed files with 5 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ import eslintPluginNext from '@next/eslint-plugin-next';
export default tseslint.config( export default tseslint.config(
{ {
name: 'unittcms/ignore-globally', name: 'unittcms/ignore-globally',
ignores: ['**/node_modules/', '**/.next/', '**/docs/'], ignores: ['**/node_modules/', '**/.next/', '**/docs/', '**/coverage/'],
}, },
{ {
name: 'unittcms/load-plugins', name: 'unittcms/load-plugins',

View File

@@ -95,8 +95,8 @@ export default function TestCaseTable({
const [showFilter, setShowFilter] = useState(false); const [showFilter, setShowFilter] = useState(false);
const [localQueryTerm, setLocalQueryTerm] = useState(queryTerm); const [localQueryTerm, setLocalQueryTerm] = useState(queryTerm);
const debouncedQuery = useDebounce((value: string) => { const debouncedQuery = useDebounce((value: unknown) => {
onQueryChange(value); onQueryChange(value as string);
}, 500); }, 500);
useEffect(() => { useEffect(() => {
@@ -179,8 +179,8 @@ export default function TestCaseTable({
default: default:
return cellValue as string; return cellValue as string;
} }
// eslint-disable-next-line react-hooks/exhaustive-deps
}, },
// eslint-disable-next-line react-hooks/exhaustive-deps
[localQueryTerm] [localQueryTerm]
); );

View File

@@ -1,6 +1,6 @@
import { useRef, useCallback, useEffect } from 'react'; import { useRef, useCallback, useEffect } from 'react';
export default function useDebounce<T extends (...args: any[]) => void>( export default function useDebounce<T extends (...args: unknown[]) => void>(
fn: T, fn: T,
delay: number delay: number
): (...args: Parameters<T>) => void { ): (...args: Parameters<T>) => void {