eslint-config-react-native-ts
An opinionated ESLint config for React Native projects using TypeScript
Includes rules for:
Installation
Install eslint-config-react-native-ts
:
yarn add --dev eslint-config-react-native-ts
Install the required peer dependencies:
yarn add --dev @typescript-eslint/eslint-plugin \
@typescript-eslint/parser \
eslint \
eslint-plugin-react \
eslint-plugin-react-hooks \
eslint-plugin-react-native \
eslint-plugin-react-native-a11y
Usage
In your project's .eslintrc.*
file, add the following:
{
"extends": ["react-native-ts"],
"rules": {
}
}
License
eslint-config-react-native-ts is licensed under the MIT License.