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 1.2.1 to 2.0.0

1

lib/rules/no-color-literals.js

@@ -9,2 +9,3 @@ /**

const styleSheet = require('../util/stylesheet');
const StyleSheets = styleSheet.StyleSheets;

@@ -11,0 +12,0 @@ const astHelpers = styleSheet.astHelpers;

@@ -9,2 +9,3 @@ /**

const styleSheet = require('../util/stylesheet');
const StyleSheets = styleSheet.StyleSheets;

@@ -11,0 +12,0 @@ const astHelpers = styleSheet.astHelpers;

3

lib/rules/no-unused-styles.js

@@ -8,2 +8,3 @@ /**

const styleSheet = require('../util/stylesheet');
const StyleSheets = styleSheet.StyleSheets;

@@ -18,3 +19,3 @@ const astHelpers = styleSheet.astHelpers;

Object.keys(unusedStyles).forEach((key) => {
if (unusedStyles.hasOwnProperty(key)) {
if ({}.hasOwnProperty.call(unusedStyles, key)) {
const styles = unusedStyles[key];

@@ -21,0 +22,0 @@ styles.forEach((node) => {

@@ -78,3 +78,3 @@ /**

Object.keys(this.list).forEach((i) => {
if (this.list.hasOwnProperty(i) && this.list[i].confidence >= 2) {
if ({}.hasOwnProperty.call(this.list, i) && this.list[i].confidence >= 2) {
list[i] = this.list[i];

@@ -95,3 +95,3 @@ }

Object.keys(this.list).forEach((i) => {
if (this.list.hasOwnProperty(i) && this.list[i].confidence >= 2) {
if ({}.hasOwnProperty.call(this.list, i) && this.list[i].confidence >= 2) {
length++;

@@ -302,3 +302,3 @@ }

if (!currentNode.properties) {
continue;
continue; // eslint-disable-line no-continue
}

@@ -401,3 +401,3 @@ for (k = 0, l = currentNode.properties.length; k < l; k++) {

detectionInstructions[instruction](node);
return ruleInstructions[instruction] ? ruleInstructions[instruction](node) : void 0;
return ruleInstructions[instruction] ? ruleInstructions[instruction](node) : undefined;
};

@@ -404,0 +404,0 @@ });

{
"name": "eslint-plugin-react-native",
"version": "1.2.1",
"version": "2.0.0",
"author": "Tom Hastjarjanto <tom@intellicode.nl>",

@@ -25,12 +25,14 @@ "description": "React Native specific linting rules for ESLint",

"bugs": "https://github.com/intellicode/eslint-plugin-react-native/issues",
"dependencies": {
"eslint": "3.2.1",
"babel-eslint": "6.1.2"
},
"devDependencies": {
"babel-eslint": "6.1.2",
"coveralls": "2.11.12",
"eslint": "2.13.1",
"eslint-config-airbnb": "9.0.1",
"eslint-config-airbnb": "10.0.0",
"eslint-plugin-import": "^1.9.2",
"eslint-plugin-jsx-a11y": "^1.5.3",
"eslint-plugin-react": "5.2.2",
"eslint-plugin-jsx-a11y": "2.0.1",
"eslint-plugin-react": "6.0.0",
"istanbul": "0.4.4",
"mocha": "3.0.0"
"mocha": "3.0.1"
},

@@ -37,0 +39,0 @@ "keywords": [

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