Skip to content

Upgrade ESLint to v9 flat config and add React lint rules - #29

Merged
samdaw13 merged 1 commit into
mainfrom
feature/eslint-prettier-config
Mar 4, 2026
Merged

samdaw13 merged 1 commit into
mainfrom
feature/eslint-prettier-config

Conversation

@samdaw13

@samdaw13 samdaw13 commented Mar 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Migrate from ESLint 8 (.eslintrc.js) to ESLint 9 flat config (eslint.config.mjs)
  • Upgrade all lint plugins to latest major versions: typescript-eslint v8, eslint-plugin-jest v29, eslint-plugin-prettier v5, eslint-plugin-testing-library v7, prettier v3
  • Add eslint-plugin-react and eslint-plugin-react-hooks to catch React-specific bugs (unstable nested components, hooks violations, missing exhaustive deps)
  • Add eslint-config-prettier to disable ESLint rules that conflict with Prettier
  • Add missing import React to files newly caught by react/react-in-jsx-scope
  • Add jsxSingleQuote: true to .prettierrc.js for Prettier 3 compatibility

Closes #14, closes #15, closes #16

Test plan

  • npm run lint passes with 0 errors (6 pre-existing warnings for hooks patterns)
  • npm test passes — all 13 suites, 52 tests green
  • Verify pre-commit hook runs lint-staged successfully

🤖 Generated with Claude Code

Migrate from ESLint 8 with .eslintrc.js to ESLint 9 flat config
(eslint.config.mjs). Upgrade all plugins to their latest major versions
(typescript-eslint v8, eslint-plugin-jest v29, eslint-plugin-prettier v5,
eslint-plugin-testing-library v7, prettier v3). Add eslint-plugin-react and
eslint-plugin-react-hooks to catch React-specific bugs like unstable nested
components, hooks violations, and missing exhaustive deps.

Closes #14, closes #15, closes #16

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@samdaw13
samdaw13 merged commit be5f661 into main Mar 4, 2026
2 checks passed
@samdaw13
samdaw13 deleted the feature/eslint-prettier-config branch March 4, 2026 14:42
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.

Enable React/React Native ESLint rules Add Prettier recommended config to ESLint extends Upgrade ESLint ecosystem to latest versions

1 participant