Socket
Socket
Sign inDemoInstall

eslint-plugin-react

Package Overview
Dependencies
0
Maintainers
1
Versions
204
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.6.0 to 1.6.1

9

History.md

@@ -0,1 +1,10 @@

1.6.1 / 2015-03-25
==================
* update jsx-quotes documentation
* fix jsx-no-undef with babel-eslint ([#30][])
* fix jsx-quotes on Literal childs ([#29][])
[#30]: https://github.com/yannickcr/eslint-plugin-react/issues/30
[#29]: https://github.com/yannickcr/eslint-plugin-react/issues/29
1.6.0 / 2015-03-22

@@ -2,0 +11,0 @@ ==================

4

lib/rules/jsx-no-undef.js

@@ -41,2 +41,6 @@ /**

variables = scope.childScopes[0].variables.concat(variables);
// Temporary fix for babel-eslint
if (scope.childScopes[0].childScopes.length) {
variables = scope.childScopes[0].childScopes[0].variables.concat(variables);
}
}

@@ -43,0 +47,0 @@

12

lib/rules/jsx-quotes.js

@@ -43,16 +43,6 @@ /**

/**
* Determines if a given node is part of JSX syntax.
* @param {ASTNode} node The node to check.
* @returns {boolean} True if the node is a JSX node, false if not.
* @private
*/
function isJSXElement(node) {
return node.type.indexOf('JSX') === 0;
}
return {
Literal: function(node) {
if (!isJSXElement(node.parent)) {
if (node.parent.type !== 'JSXAttribute') {
return;

@@ -59,0 +49,0 @@ }

{
"name": "eslint-plugin-react",
"version": "1.6.0",
"version": "1.6.1",
"author": "Yannick Croissant <yannick.croissant+npm@gmail.com>",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc