ESLint rules for React Native, including TypeScript.
Install the exact version (-E) of the package in devDependencies (-D) using the following command:
yarn add -DE eslint-config-os-team-react-native
Make sure eslint
, jest
, and react
packages are installed.
const reactNativeConfig = require('eslint-config-os-team-react-native');
module.exports = [
...reactNativeConfig.configs.recommended,
// Your config
{
files: ['**/*.{js,mjs,cjs,ts,jsx,tsx}'],
rules: {},
},
];