aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrendan F <EpicWolverine@users.noreply.github.com>2023-06-25 17:14:20 -0700
committerBrendan F <EpicWolverine@users.noreply.github.com>2023-06-25 17:14:20 -0700
commit3ecbe70fa70b187a03b727fd21b1fb36d46442d1 (patch)
treec43090ebb9cd9b90e1c169750f658411bd660d71
parent1d89c9d43f05aa09b6449882bfcd9a5810438f49 (diff)
Fix lint issues
-rw-r--r--.eslintrc.js7
-rw-r--r--package.json2
-rw-r--r--src/app.tsx2
-rw-r--r--src/components/Game/index.tsx2
-rw-r--r--src/components/InfoPopUp/index.tsx2
-rw-r--r--src/components/Result/index.tsx4
6 files changed, 13 insertions, 6 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index 3fccc68..3c946a1 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -42,4 +42,11 @@ module.exports = {
"@typescript-eslint/explicit-module-boundary-types": [0],
},
+ "settings": {
+ "react": {
+ "createClass": "createReactClass",
+ "pragma": "React",
+ "version": "detect"
+ }
+ }
};
diff --git a/package.json b/package.json
index 125de14..fe3dc7d 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
{
- "name": "PersonalHeardle",
+ "name": "personalheardle",
"version": "1.0.0",
"license": "MIT",
"dependencies": {
diff --git a/src/app.tsx b/src/app.tsx
index a045bcc..26aa7bc 100644
--- a/src/app.tsx
+++ b/src/app.tsx
@@ -156,7 +156,7 @@ function App() {
guess={guess}
/>
</Styled.Container>
- {/* <Footer /> */}
+ <Footer />
</main>
);
}
diff --git a/src/components/Game/index.tsx b/src/components/Game/index.tsx
index 84ca282..6f6b736 100644
--- a/src/components/Game/index.tsx
+++ b/src/components/Game/index.tsx
@@ -10,7 +10,7 @@ import * as Styled from "./index.styled";
interface Props {
guesses: GuessType[];
- todaysSolution: any;
+ todaysSolution: Song;
currentTry: number;
didGuess: boolean;
setSelectedSong: React.Dispatch<React.SetStateAction<Song | undefined>>;
diff --git a/src/components/InfoPopUp/index.tsx b/src/components/InfoPopUp/index.tsx
index eb22b19..8df4a23 100644
--- a/src/components/InfoPopUp/index.tsx
+++ b/src/components/InfoPopUp/index.tsx
@@ -1,5 +1,5 @@
import React from "react";
-import { IoMusicalNoteOutline, IoHelpCircleOutline } from "react-icons/io5";
+// import { IoMusicalNoteOutline, IoHelpCircleOutline } from "react-icons/io5";
import { Button } from "..";
import * as Styled from "./index.styled";
diff --git a/src/components/Result/index.tsx b/src/components/Result/index.tsx
index 9fc7861..4aadbc6 100644
--- a/src/components/Result/index.tsx
+++ b/src/components/Result/index.tsx
@@ -40,7 +40,7 @@ export function Result({
<>
<Styled.ResultTitle>{textForTry[currentTry - 1]}</Styled.ResultTitle>
<Styled.SongTitle>
- Today's song is {todaysSolution.artist} - {todaysSolution.name}
+ Today&apos;s song is {todaysSolution.artist} - {todaysSolution.name}
</Styled.SongTitle>
<Styled.Tries>
You guessed it in {currentTry} {currentTry === 1 ? 'try' : 'tries'}.
@@ -59,7 +59,7 @@ export function Result({
<>
<Styled.ResultTitle>Unfortunately, thats wrong.</Styled.ResultTitle>
<Styled.SongTitle>
- Today's song is {todaysSolution.artist} - {todaysSolution.name}
+ Today&apos;s song is {todaysSolution.artist} - {todaysSolution.name}
</Styled.SongTitle>
<YouTube id={todaysSolution.youtubeId} />
<Button onClick={copyResult} variant="red">
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage