@inthepocket/eslint-config-react-native

0.2.3 • Public • Published

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

/@inthepocket/eslint-config-react-native/

    Package Sidebar

    Install

    npm i @inthepocket/eslint-config-react-native

    Weekly Downloads

    3

    Version

    0.2.3

    License

    MIT

    Unpacked Size

    3.73 kB

    Total Files

    4

    Last publish

    Collaborators

    • sieem
    • lode.vanhove
    • moutpessemier
    • stijnv
    • robrechtme
    • klukies
    • eliaslecomte
    • gertjanreynaert
    • itpit
    • thibmaek
    • brecht
    • jonasdegeest
    • kevinmeyvaert
    • glenn.bostoen
    • tmons