Skip to content

Commit 6a116f6

Browse files
committed
chore: lint
1 parent d02a2fd commit 6a116f6

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

components/form/__tests__/form-helper.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ describe('FormHelper validate', () => {
6363
});
6464

6565
it('should skip async validators and log a warning', () => {
66-
const warnSpy = jest.spyOn(console, 'warn').mockImplementation(() => {});
66+
const warnSpy = jest.spyOn(console, 'warn').mockImplementation(() => { /* noop */ });
6767
const asyncValidator = () => Promise.resolve(true);
6868
const res = validate('value', { validator: asyncValidator });
6969
expect(res).toBe(undefined);

components/slider/slider.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ const Slider = React.forwardRef<HTMLDivElement, SliderProps>(
151151

152152
// Store latest drag/dragEnd handlers in refs so window listeners
153153
// always dispatch to the current closure (no stale captures).
154+
// eslint-disable-next-line @typescript-eslint/no-empty-function
154155
const draggingRef = useRef<(e: MouseEvent) => void>(() => {});
156+
// eslint-disable-next-line @typescript-eslint/no-empty-function
155157
const dragEndRef = useRef<() => void>(() => {});
156158

157159
draggingRef.current = (e: MouseEvent): void => {

0 commit comments

Comments
 (0)