-
Notifications
You must be signed in to change notification settings - Fork 0
Description
🐛 Bug Description
ESLint is failing the CI build due to multiple unused imports, unused variables, and missing dependencies in React hooks across several components. These issues prevent the PR from passing automated checks and block deployment.
📋 Steps to Reproduce
- Go to
frontenddir - Rin
npm run lint - Observe the ESLint errors listed in the CI log
- The build fails and the PR cannot be merged
🎯 Expected Behavior
All components should pass ESLint without errors or warnings. Specifically:
• No unused imports
• No unused variables
• No missing dependencies in useEffect
• Proper error handling variables used correctly
📸 Actual Behavior
ESLint errors currently present in the PR:
SignupForm.jsx
• error is assigned a value but never used
• err is defined but never used
Navbar.jsx
• React Hook useEffect missing dependency: userId
Achievements.js
• achievements is declared but never used
ProfileMain.jsx
• updatedUser is assigned a value but never used
• err is defined but never used (multiple occurrences)
AdminPanel.jsx
• useEffect is defined but never used
• getAllQuests is defined but never used
• quests, setQuests, loading, setLoading, error, setError are defined but never used
🌍 Environment
- OS: Any
- Browser Any
- Version/Commit: PR Refactor: Frontend Legacy migration #15 We should fix the issue on refactor/frontend-migration branch
📎 Additional Context
These linting issues block the CI pipeline and prevent the PR from merging. Fixing them will require:
• Removing unused imports and variables
• Updating useEffect dependency arrays
• Using the variables properly or deleting them if unnecessary
Metadata
Metadata
Assignees
Labels
Type
Projects
Status