0.2.3 • Published 12 months ago

@inthepocket/eslint-config-react-native v0.2.3

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

@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}\"",
  }
}