eslint-plugin-you-dont-need-lodash-underscore
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -21,5 +21,5 @@ /** | ||
const callee = node.callee; | ||
const objectName = callee.object.name; | ||
const objectName = callee.name || (callee.object && callee.object.name); | ||
if ((objectName === '_' || objectName === 'lodash' || objectName === 'underscore') && callee.property.name === rule) { | ||
if ((objectName === '_' || objectName === 'lodash' || objectName === 'underscore') && callee.property && callee.property.name === rule) { | ||
context.report({ | ||
@@ -26,0 +26,0 @@ node, |
@@ -17,4 +17,4 @@ { | ||
"select": "Consider using the native Array.prototype.filter()", | ||
"includes": "Consider using the native Array.prototype.includes()", | ||
"contains": "Consider using the native Array.prototype.includes()", | ||
"includes": "Consider using the native ES6 Array.prototype.includes()", | ||
"contains": "Consider using the native ES6 Array.prototype.includes()", | ||
"map": "Consider using the native Array.prototype.map()", | ||
@@ -21,0 +21,0 @@ "collect": "Consider using the native Array.prototype.map()", |
{ | ||
"name": "eslint-plugin-you-dont-need-lodash-underscore", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Check methods you can use natively without lodash/underscore", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -52,2 +52,6 @@ ## You don't (may not) need Lodash/Underscore [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/cht8687/You-Dont-Need-Lodash-Underscore) | ||
</a> | ||
<a href="https://david-dm.org/cht8687/You-Dont-Need-Lodash-Underscore.svg"> | ||
<img src="https://david-dm.org/cht8687/You-Dont-Need-Lodash-Underscore.svg?style=flat-square" | ||
alt="Dependency Status"> | ||
</a> | ||
</p> | ||
@@ -54,0 +58,0 @@ If you're using [ESLint](http://eslint.org/), you can install a |
@@ -47,1 +47,9 @@ /** | ||
}); | ||
// Chaining. | ||
ruleTester.run('_', rules.concat, { | ||
valid: [ | ||
'_(2, [3], [[4]])' | ||
], | ||
invalid: [] | ||
}); |
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
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
39280
114
877
0