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 3.1.0 to 3.2.0

40

index.js

@@ -34,2 +34,42 @@ /* eslint-disable global-require */

},
environments: {
'react-native': {
globals: {
__DEV__: true,
__dirname: false,
__fbBatchedBridgeConfig: false,
alert: false,
cancelAnimationFrame: false,
cancelIdleCallback: false,
clearImmediate: true,
clearInterval: false,
clearTimeout: false,
console: false,
document: false,
escape: false,
Event: false,
EventTarget: false,
exports: false,
fetch: false,
FormData: false,
global: false,
jest: false,
Map: true,
module: false,
navigator: false,
process: false,
Promise: true,
requestAnimationFrame: true,
requestIdleCallback: true,
require: false,
Set: true,
setImmediate: true,
setInterval: false,
setTimeout: false,
window: false,
XMLHttpRequest: false,
pit: false,
},
},
},
configs: {

@@ -36,0 +76,0 @@ all: {

2

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

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

@@ -55,2 +55,12 @@

In order to whitelist all *browser-like* globals, add `react-native/react-native` to your config.
```json
{
"env": {
"react-native/react-native": true
}
}
```
Finally, enable all of the rules that you would like to use.

@@ -57,0 +67,0 @@

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