Skip to content

Commit

Permalink
Run prettier + eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
snelsi committed Mar 6, 2023
1 parent 289095f commit 691629f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -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"]
}
8 changes: 7 additions & 1 deletion example/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

1 comment on commit 691629f

@vercel
Copy link

@vercel vercel bot commented on 691629f Mar 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lethargy-ts – ./

lethargy-ts.vercel.app
lethargy-ts-git-master-snelsi.vercel.app
lethargy-ts-snelsi.vercel.app

Please sign in to comment.