Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove a bunch of unused variables for eslint #250

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

kira-m
Copy link
Collaborator

@kira-m kira-m commented Sep 28, 2023

Netlify build was failing due to @typescript-eslint/no-unused-vars ; this should put it back into a good state

@netlify
Copy link

netlify bot commented Sep 28, 2023

Deploy Preview for glittery-kulfi-b3068d failed.

Name Link
🔨 Latest commit 92c2083
🔍 Latest deploy log https://app.netlify.com/sites/glittery-kulfi-b3068d/deploys/651715f5c9560c0008885d93

@kira-m kira-m force-pushed the km-eslint branch 2 times, most recently from 57e3810 to 243342e Compare September 28, 2023 00:18
royayush1
royayush1 previously approved these changes Sep 28, 2023
@royayush1 royayush1 dismissed their stale review September 28, 2023 22:33

have to check some more

const [isLoading, setIsLoading] = useState(true);
const { currentUser, sessionToken } = useAuth();
const [dishesUsed, setDishesUsed] = useState([]);
const [isMobile, setIsMobile] = useState(window.innerWidth <= 768);
const [isMobile, setIsMobile] = useState(window.innerWidth <= 768); // eslint-disable-line @typescript-eslint/no-unused-vars
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we do need this for styling - coz the app can run both on the desktop browser or mobile

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@royayush1 yep I didn't take the line out!

// eslint-disable-line @typescript-eslint/no-unused-vars tells eslint "I know that this line is violating the no-unused-vars rule but please ignore it"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants