Skip to content

Upgrade remaining dependencies and set up standalone ESLint#11

Open
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
upgrade/deps-eslint
Open

Upgrade remaining dependencies and set up standalone ESLint#11
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
upgrade/deps-eslint

Conversation

@devin-ai-integration
Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot commented May 4, 2026

Summary

Session D of the 4-session parallel migration. Upgrades remaining dependencies and sets up standalone ESLint configuration (flat config format) to replace CRA's eslint-config-react-app.

Dependency Upgrades

  • react-icons: ^4.3.1^5.6.0
  • react-countdown: ^2.3.2^2.3.6 (supports React >= 15, compatible with React 19)
  • sass: ^1.49.9^1.99.0
  • classnames: ^2.3.1^2.5.1

ESLint Setup

  • Installed eslint@^9, @eslint/js@^9, eslint-plugin-react@^7, eslint-plugin-react-hooks@^5 as dev dependencies
  • Created eslint.config.js using ESLint flat config format with:
    • @eslint/js recommended rules
    • eslint-plugin-react recommended rules (with react-in-jsx-scope and prop-types disabled)
    • eslint-plugin-react-hooks recommended rules
    • Browser globals configured
    • Test files excluded from linting
  • Removed eslintConfig field from package.json
  • Added "lint": "eslint src/" script to package.json

Lint Fixes

  • Fixed unused variable _() in src/lib/words.js (line 17)

Review & Testing Checklist for Human

  • Verify npx eslint src/ passes with no errors
  • Verify npm run build still works with upgraded deps
  • Spot-check that react-icons v5 icons render correctly (imports unchanged, API compatible)

Notes

  • react-countdown latest (2.3.6) has peerDependencies: { react: '>= 15' } so it's fully compatible with React 19
  • eslint-plugin-react-hooks@^5.2.0 was chosen over v7 to avoid React Compiler rules that aren't applicable yet
  • The eslint.config.js uses ESM import syntax; Node emits a warning about missing "type": "module" in package.json but this is harmless and adding it would break CRA's CommonJS expectations

Link to Devin session: https://app.devin.ai/sessions/b0c8fd91fe6847539ab3b779b5a0b23e
Requested by: @shahmir-masood


Devin Review

Status Commit
⚪ Not started

Run Devin Review

💡 Connect your GitHub account to enable automatic code reviews.

Open in Devin Review (Staging)

- Upgrade react-icons to ^5.6.0
- Upgrade react-countdown to ^2.3.6
- Upgrade sass to ^1.99.0
- Upgrade classnames to ^2.5.1
- Install eslint, @eslint/js, eslint-plugin-react, eslint-plugin-react-hooks
- Create eslint.config.js with flat config format
- Remove eslintConfig from package.json
- Add lint script to package.json
- Fix unused variable in src/lib/words.js

Co-Authored-By: shahmir.masood <shahmir.masood@cognition.ai>
@devin-ai-integration
Copy link
Copy Markdown
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

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.

0 participants