Socket
Socket
Sign inDemoInstall

eslint-plugin-react

Package Overview
Dependencies
Maintainers
1
Versions
212
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-react - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

History.md

5

lib/rules/self-closing-comp.js

@@ -23,5 +23,6 @@ /**

function hasChildren(node) {
var childrens = node.parent.children;
if (
!node.parent.children.length ||
(node.parent.children[0].type === 'Literal' && !node.parent.children[0].value.trim())
!childrens.length ||
(childrens.length === 1 && childrens[0].type === 'Literal' && !childrens[0].value.trim())
) {

@@ -28,0 +29,0 @@ return false;

6

package.json
{
"name": "eslint-plugin-react",
"version": "1.2.1",
"version": "1.2.2",
"author": "Yannick Croissant <yannick.croissant+npm@gmail.com>",

@@ -27,4 +27,4 @@ "description": "React specific linting rules for ESLint",

"coveralls": "2.11.2",
"eslint": "0.13.0",
"eslint-tester": "0.5.0",
"eslint": "0.14.1",
"eslint-tester": "0.6.0",
"istanbul": "0.3.5",

@@ -31,0 +31,0 @@ "mocha": "2.1.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