13.1.0 • Published 3 years ago

@moxy/eslint-config-react-native-a11y v13.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
3 years ago

eslint-config-react-native-a11y

NPM version Downloads Dependency status Dev Dependency status

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.

ℹ️ By default, the configurations above are for both iOS and Android. If you are targeting only one platform, append its name as follows:

  • @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"
    ]
}