@inthepocket/eslint-config-react-native
v0.2.3
Published
ESLint config for React Native
Downloads
9
Maintainers
Keywords
Readme
@inthepocket/eslint-config-react-native
React Native specific linting rules for ESLint. It is recommended to use this config to ensure that any React-Native project within In The Pocket is linted in the same way.
The config is mainly based on:
If some rules don't suit your needs, please consider opening an MR instead of overriding the config for each project.
Usage
Install
npm i -D @inthepocket/eslint-config-react-native
or
yarn add -D @inthepocket/eslint-config-react-native
Configure ESLint
Within your package.json
or add the following:
{
"eslintConfig": {
"extends": ["@inthepocket/eslint-config-react-native"]
}
}
You can also create an .eslintrc
file instead.
Add Lint script
{
"scripts": {
"lint": "eslint --version && eslint --cache \"./src/**/*.{ts,tsx}\"",
}
}