react / react/react-native

eslint-config/eslint-plugin: Support "Flat Config" (ESLint 9)

Open
#42,996 28 comments 34 reactions 1 assignee View on GitHub

@MCanhisares is already working on this.

Since Mar 21, 2024.

Never gets stale Resolution: Fixed
Dominant language
C++
Stars
127k
Forks
25.3k
Avg merge
1d 23h
Merged PRs (30d)
4

Description

Description

👋 Coming over from https://github.com/eslint/eslint/issues/18093: ESLint is migrating to a new "flat config" format that will be the default in ESLint v9.

It doesn't look like @react-native-community/eslint-plugin has support yet. I'm posting this issue here as a reference & cross-linking it to the table in https://github.com/eslint/eslint/issues/18093. If there's anything technical blocking the extension from supporting flat configs, please let us know - we'd be happy to try to help! 💜

Additional resources:

(sorry for not using the issue template properly - I wasn't sure how best to report this)

Steps to reproduce
  1. Have an eslint.config.js (flat config)
  2. See setup instructions https://www.npmjs.com/package/@react-native-community/eslint-plugin
  3. Note the missing mention of flat config
React Native Version

n/a

Affected Platforms

Other (please specify)

Output of npx react-native info
n/a
Stacktrace or Logs
n/a
Reproducer

n/a

Screenshots and Videos

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.