Skip to content

How to use with flat config file in eslint9 #166

Open
@otusweb

Description

@otusweb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions