Socket
Socket
Sign inDemoInstall

@inthepocket/eslint-config-react-native

Package Overview
Dependencies
Maintainers
11
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inthepocket/eslint-config-react-native

ESLint config for React Native


Version published
Weekly downloads
0
decreased by-100%
Maintainers
11
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 24 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc