eslint-config-react-native-a11y
MOXY's ESLint accessibility rules for React Native apps.
Installation
$ npm install --save-dev eslint @moxy/eslint-config-react-native-a11y
Usage
Create a .eslintrc.json
file in the project root and extend from one of these configurations:
-
@moxy/eslint-config-react-native-a11y
- for apps targeting the latest version of React Native. -
@moxy/eslint-config-react-native-a11y/rn-062
- for apps targeting React Native ~0.62.0. -
@moxy/eslint-config-react-native-a11y/rn-061
- for apps targeting React Native ~0.61.0. -
@moxy/eslint-config-react-native-a11y/rn-060
- for apps targeting React Native ~0.60.0. -
@moxy/eslint-config-react-native-a11y/rn-059
- for apps targeting React Native <=0.59.10.
@moxy/eslint-config-react-native-a11y/android
@moxy/eslint-config-react-native-a11y/ios
@moxy/eslint-config-react-native-a11y/rn-*/android
@moxy/eslint-config-react-native-a11y/rn-*/ios
This package should be used in conjunction with:
Example
{
"root": true,
"extends": [
"@moxy/eslint-config-base/esm",
"@moxy/eslint-config-react",
"@moxy/eslint-config-react-native",
"@moxy/eslint-config-react-native-a11y"
]
}