FormidableLabs / FormidableLabs/eslint-plugin-react-native-a11y

How to use with flat config file in eslint9

Open
#166 2 comments 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
306
Forks
29
PR merge metrics
No merged PRs in 30d

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Code of Conduct

- [x] 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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.