chore(root): migrate to biome

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-09-16 12:20:40 +02:00
parent 1f6e198336
commit 32e91959f6
383 changed files with 1943 additions and 3085 deletions

View File

@@ -1,5 +1,5 @@
import { useCallback, useEffect, useRef } from 'react';
import throttle from 'lodash.throttle';
import { useCallback, useEffect, useRef } from 'react';
export function useThrottle(cb: () => void, delay: number) {
const options = { leading: true, trailing: false }; // add custom lodash options
@@ -10,6 +10,6 @@ export function useThrottle(cb: () => void, delay: number) {
});
return useCallback(
throttle(() => cbRef.current(), delay, options),
[delay]
[delay],
);
}