New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-react-native

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-react-native - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

package.json
{
"name": "eslint-plugin-react-native",
"version": "0.3.0",
"version": "0.3.1",
"author": "Tom Hastjarjanto <tom@intellicode.nl>",

@@ -5,0 +5,0 @@ "description": "React Native specific linting rules for ESLint",

@@ -1,1 +0,64 @@

# eslint-plugin-react-native
ESLint plugin for React Native
==============================
React Native specific linting rules for ESLint. This repository is structured like (and contains code from) the excellent [eslint-plugin-react](http://github.com/yannickcr/eslint-plugin-react).
# Installation
Install [ESLint](https://www.github.com/eslint/eslint) either locally or globally.
```sh
$ npm install eslint
```
To make most use of this plugin, its recommended to install [eslint-plugin-react](http://github.com/yannickcr/eslint-plugin-react) in addition to [ESLint](https://www.github.com/eslint/eslint). If you installed `ESLint` globally, you have to install eslint-plugin-react globally too. Otherwise, install it locally.
```sh
$ npm install eslint-plugin-react
```
Similarly, install eslint-plugin-react-native
```sh
$ npm install eslint-plugin-react-native
```
# Configuration
Add `plugins` section and specify ESLint-plugin-React (optional) and ESLint-plugin-react-native as a plugin.
```json
{
"plugins": [
"react",
"react-native"
]
}
```
If it is not already the case you must also configure `ESLint` to support JSX.
```json
{
"ecmaFeatures": {
"jsx": true
}
}
```
Finally, enable all of the rules that you would like to use.
```json
{
"rules": {
"react/no-unused-styles": 1,
}
}
```
# List of supported rules
* [no-unused-styles](TODO: docs): Detect `StyleSheet` rules which are not used in your React components
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