@moxy/eslint-config-react-native-a11y

13.1.0 • Public • Published

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

Package Sidebar

Install

npm i @moxy/eslint-config-react-native-a11y

Weekly Downloads

1

Version

13.1.0

License

MIT

Unpacked Size

13.3 kB

Total Files

26

Last publish

Collaborators

  • tiagodinis
  • moxyhq
  • filipediasf
  • satazor
  • marcooliveira
  • acostalima
  • andregoncalvesdev