Socket
Book a DemoInstallSign in
Socket

@react-native/eslint-plugin

Package Overview
Dependencies
Maintainers
2
Versions
806
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-native/eslint-plugin

ESLint rules for @react-native/eslint-config

latest
Source
npmnpm
Version
0.81.1
Version published
Weekly downloads
723K
3.47%
Maintainers
2
Weekly downloads
 
Created
Source

@react-native/eslint-plugin

This plugin is intended to be used in @react-native/eslint-config. You probably want to install that package instead.

Installation

yarn add --dev eslint @react-native/eslint-plugin

Note: We're using yarn to install deps. Feel free to change commands to use npm 3+ and npx if you like

Usage

Add to your eslint config (.eslintrc, or eslintConfig field in package.json):

{
    "plugins": ["@react-native"]
}

Rules

platform-colors

Enforces that calls to PlatformColor and DynamicColorIOS are statically analyzable to enable performance optimizations.

Testing

To run the tests in this package, run the following commands from the React Native root folder:

  • yarn to install the dependencies. You just need to run this once
  • yarn jest packages/eslint-plugin-react-native.

Keywords

eslint

FAQs

Package last updated on 27 Aug 2025

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