Skip to content

build(deps): migrate to eslint 9 flat config - #1342

Open
sunitaprajapati89 wants to merge 2 commits into
masterfrom
fix/eslint
Open

sunitaprajapati89 wants to merge 2 commits into
masterfrom
fix/eslint

Conversation

@sunitaprajapati89

Copy link
Copy Markdown
Contributor

Summary

  • Migrate from ESLint 8 (EOL) to ESLint 9 with a flat config (eslint.config.js), replacing .eslintrc.js and .eslintignore (S11).
  • Bump @react-native/eslint-config to 0.88.0 (ships a flat config) and add typescript-eslint / @eslint/js.
  • Keep existing custom rules, Jest/e2e overrides and ignores. Dropped the prettier/prettier lint rule since the new RN config no longer bundles it; formatting stays with treefmt.
  • Disabled no-require-imports and ignore caught errors / _-prefixed args in no-unused-vars to preserve prior behavior; removed one stray statement in bridge.test.ts.

Notes

  • ESLint 9.39.x is itself now flagged deprecated on npm. ESLint 10 was tried but crashes with the React Native config's plugins, so this stays on 9 until upstream supports 10.
  • The example app's own .eslintrc.js is unchanged.

Test plan

  • yarn lint — 0 errors (79 warnings)
  • yarn typecheck
  • yarn test

🤖 Generated with Claude Code

Sunita Prajapati and others added 2 commits October 21, 2026 13:04
Replace .eslintrc.js/.eslintignore with eslint.config.js, bump eslint to 9
and @react-native/eslint-config to 0.88.0 (flat config), and add
typescript-eslint. Remove a stray statement flagged by no-unused-expressions.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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