Skip to content

Commit

Permalink
new linting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
dhedegaard committed Aug 5, 2024
1 parent 5631ca5 commit 67c3d8a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
{
"extends": ["next/core-web-vitals", "plugin:tailwindcss/recommended"]
"extends": [
"next/core-web-vitals",
"plugin:tailwindcss/recommended",
"plugin:@typescript-eslint/strict-type-checked"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"parserOptions": {
"project": true
},
"root": true
}
3 changes: 2 additions & 1 deletion src/hooks/useGamepad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ const useGamepad = () => {
lastClickedRef.current['moveToBottom'] = now + 850
}
}
} else if (buttons[0]?.pressed && gamestateRef.current === 'gameover') {
}
if (gamestateRef.current === 'gameover' && buttons[0]?.pressed === true) {
// A
dispatch(startNewGame())
}
Expand Down

0 comments on commit 67c3d8a

Please sign in to comment.