Skip to content

How to use with flat config file in eslint9 #166

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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
otusweb opened this issue Mar 3, 2025 · 2 comments
Open
2 tasks done

How to use with flat config file in eslint9 #166

otusweb opened this issue Mar 3, 2025 · 2 comments

Comments

@otusweb
Copy link

otusweb commented Mar 3, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

Question

I'm trying to use plugin with flat config file format for eslint, but can't figure it out. Could you update the documentation to outline how this would work.

I tried the following (without success):

import tseslint from "typescript-eslint"
import RNA11y from "eslint-plugin-react-native-a11y"

const config = tseslint.config(
...

  {
    name: "a11y",
    plugins: { ...RNA11y.configs.all.plugins },
    rules: { ...RNA11y.configs.all.rules }
  },
...
)
Image
@chico-oliveira
Copy link

Also running into this issue, would love to be able to use this with a flat config file in eslint v9

@carbonrobot
Copy link
Contributor

We don't currently have an active maintainer, but would be happy to review a PR to update it for support.

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

No branches or pull requests

3 participants