0.2.1 • Published 3 years ago
@forxtu/eslint-plugin-react-native-a11y v0.2.1
eslint-plugin-react-native-a11y
Set of custom rules for RN a11y
Installation
You'll first need to install ESLint:
$ yarn add -D eslint
Next, install @forxtu/eslint-plugin-react-native-a11y
:
$ yarn add -D @forxtu/eslint-plugin-react-native-a11y
Usage
Add @forxtu/react-native-a11y
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["@forxtu/react-native-a11y"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"@forxtu/react-native-a11y/rule-name": 2
}
}