From 691629ff5a2452a9e14884fab8461907959b3d26 Mon Sep 17 00:00:00 2001 From: Roman Zhuravlov Date: Mon, 6 Mar 2023 23:16:45 +0200 Subject: [PATCH] Run prettier + eslint --- .eslintrc | 6 +----- example/src/utils.ts | 8 +++++++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.eslintrc b/.eslintrc index a0dbf0b..ae3c197 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,9 +1,5 @@ { - "extends": [ - "eslint:recommended", - "plugin:@typescript-eslint/recommended", - "prettier" - ], + "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"], "parser": "@typescript-eslint/parser", "plugins": ["@typescript-eslint"] } diff --git a/example/src/utils.ts b/example/src/utils.ts index afce248..f1bba9f 100644 --- a/example/src/utils.ts +++ b/example/src/utils.ts @@ -18,7 +18,13 @@ export const useWheelEvents = () => { if (e.ctrlKey || e.altKey) return; setEvents((prev) => { - const ev: Event = { deltaX: e.deltaX, deltaY: e.deltaY, deltaZ: e.deltaZ, timeStamp: e.timeStamp, isIntentional }; + const ev: Event = { + deltaX: e.deltaX, + deltaY: e.deltaY, + deltaZ: e.deltaZ, + timeStamp: e.timeStamp, + isIntentional, + }; const next = [ev, ...prev]; while (next.length > 100) next.pop(); return next;