@gabrielyotoo/eslint-config-react-native
v1.4.1
Published
Eslint configuration for @gabrielyotoo's React Native projects
Downloads
18
Maintainers
Readme
@gabrielyotoo/eslint-config-react-native ·
This is my configuration for ESLint when I develop React Native apps
Installation
Run the following command to install the package
yarn add -D @gabrielyotoo/eslint-config-react-native
This package depends on some other plugins, so you must also install them
yarn add -D @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint eslint-config-prettier eslint-plugin-eslint-comments \
eslint-plugin-import eslint-plugin-jest eslint-plugin-jsdoc eslint-plugin-jsx-a11y eslint-plugin-prefer-arrow \
eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-react-native eslint-plugin-security @react-native-community/eslint-config
Usage
Add the following to your ESLint configuration file
extends:
...
- "@gabrielyotoo/eslint-config-react-native"
parserOptions:
...
project: path/to/your/tsconfig.json
Used Plugins
- @typescript-eslint/eslint-plugin
- eslint-comments
- flowtype
- import
- jest
- jsdoc
- jsx-a11y
- prefer-arrow
- prettier
- react
- react-hooks
- react-native
- security