eslint-plugin-destructuring
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -5,2 +5,5 @@ # Change Log | ||
## [2.2.0] - 2019-10-14 | ||
- Allow renaming invalid identifiers | ||
## [2.1.0] - 2017-02-71 | ||
@@ -7,0 +10,0 @@ - Added new 'in-methods-params' rule |
@@ -15,4 +15,4 @@ 'use strict'; | ||
Property: function Property(node) { | ||
if (node.parent.type === 'ObjectPattern' && node.shorthand === false && node.value && node.value.type === 'Identifier') { | ||
context.report(node, 'Do not use destructuring rename.'); | ||
if (node.parent.type === 'ObjectPattern' && node.shorthand === false && node.value && node.value.type === 'Identifier' && node.key.type !== 'Literal') { | ||
context.report(node, 'Do not use destructuring rename for valid identifiers.'); | ||
} | ||
@@ -19,0 +19,0 @@ } |
{ | ||
"name": "eslint-plugin-destructuring", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"author": "Luke Page", | ||
@@ -5,0 +5,0 @@ "description": "destructuring specific linting rules for ESLint", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7448
1