Socket
Socket
Sign inDemoInstall

eslint-plugin-you-dont-need-lodash-underscore

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-you-dont-need-lodash-underscore - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

4

lib/rules/all.js

@@ -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: []
});
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