- Node.js >= 20
- ESLint >= 9
- TypeScript >= 4.9.0
With npm
:
npm install eslint @untile/eslint-config-typescript-react-native --save-dev
Or using yarn
:
yarn add eslint @untile/eslint-config-typescript-react-native -D
Create an eslint.config.js
file with the following:
const eslintUntileConfigTypescriptReactNative = require('@untile/eslint-config-typescript-react-native');
module.exports = eslintUntileConfigTypescriptReactNative;
Add the following script
to your package.json
:
{
"scripts": {
"lint": "eslint ."
}
}
and run the linter with:
yarn lint