Open JoshuaKGoldberg opened 4 months ago
:warning: | Add or Reformat Version Info |
---|---|
:information_source: | We could not find or parse the version number of React Native in your issue report. Please use the template, and report your version including major, minor, and patch numbers - e.g. 0.70.2 |
:warning: | Missing Reproducible Example |
---|---|
:information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
It doesn't look like `@react-native-community/eslint-plugin has support yet
Hey @JoshuaKGoldberg, we don't maintain this package anymore. Did you mean @react-native/eslint-plugin
?
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.
Just confirming where the packages are now, what package(s) should I be filing this issue on?
Packages that are eslint related and hosted on this repo are:
I think part of my confusion comes from both npmjs.com/package/@react-native/eslint-plugin and npmjs.com/package/@react-native-community/eslint-plugin linking to this repo.
Yup as historically we were hosting @react-native-community/eslint-plugin
inside this repo. We then renamed it to @react-native/eslint-plugin
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 overrides
property in the configration files for version 9.
In the version 8 documentation it was mentioned.
Could you please clarify if there have been changes to the overrides
property or if it's still applicable in version 9?
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 files
/ignores
entries that apply in order.
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
@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 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
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