Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-jsx-control-statements

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-jsx-control-statements - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

5

CHANGELOG.md

@@ -12,2 +12,7 @@ # Changelog

## v1.0.2
### Fixed
- Fixed: Allow JSX Expression to be used as child inside `If` and `For` tags.
## v1.0.1

@@ -14,0 +19,0 @@

2

lib/utils.js

@@ -5,3 +5,3 @@ "use strict";

return children.filter(function(c) {
if (c.type === "JSXElement") return true;
if (c.type === "JSXElement" || c.type === "JSXExpressionContainer") return true;

@@ -8,0 +8,0 @@ if (c.type === "Literal") return c.value.trim() !== "";

{
"name": "eslint-plugin-jsx-control-statements",
"version": "1.0.1",
"version": "1.0.2",
"author": "Vivek Kumar Bansal <vkb0310@gmail.com>",

@@ -5,0 +5,0 @@ "description": "jsx-control-statements specific linting rules for ESLint",

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