New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
eslint-config/eslint-plugin: Support "Flat Config" (ESLint 9) #42996
Comments
|
|
Hey @JoshuaKGoldberg, we don't maintain this package anymore. Did you mean |
Oh! Maybe I did. Sorry, I haven't written anything in React Native in a few years and I got confused by all the similar names 馃槄. Just confirming where the packages are now, what package(s) should I be filing this issue on? I think part of my confusion comes from both https://www.npmjs.com/package/@react-native/eslint-plugin and https://www.npmjs.com/package/@react-native-community/eslint-plugin linking to this repo. |
Packages that are eslint related and hosted on this repo are:
Yup as historically we were hosting |
I guess there is no update on this yet |
@JoshuaKGoldberg Hello, I hope you're doing well! I'm currently in the process of migrating to ESLint version 9 using a flat configuration. However, I couldn't find any information regarding the Could you please clarify if there have been changes to the Thank you in advance for the answer |
馃憢 @aeyll-11 - just to clarify, is this for adding support for React Native's ESLint presets, or for another project? Answering in general: yes, you can think of the new flat config format as kind of being a list of overrides. From https://eslint.org/docs/head/use/configure/configuration-files#specifying-files-and-ignores (in the page you linked) - you can specify any number of If you've got more questions about what's changed that aren't directly on React Native using flat config, I think the ESLint Discord would be a good place to ask more. If your question actually is about specifically React Native & this issue then never mind, apologies. 馃檪 |
@JoshuaKGoldberg Its for adding support for React Native's ESLint presets. |
@cortinico Can you assign this issue to me? I'd like to take a crack based on some of the other libraries that also added support to the flat config |
Sure please go ahead 馃憤 |
@cortinico opened a PR with the changes |
Description
馃憢 Coming over from eslint/eslint#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 eslint/eslint#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
eslint.config.js
(flat config)React Native Version
n/a
Affected Platforms
Other (please specify)
Output of
npx react-native info
Stacktrace or Logs
Reproducer
n/a
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: