Socket
Socket
Sign inDemoInstall

eslint-plugin-lodash-fp

Package Overview
Dependencies
93
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.0 to 2.1.1

11

CHANGELOG.md

@@ -7,2 +7,9 @@ # Change Log

## [Unreleased]
- (none)
## [2.1.1] - 2016-10-14
- Fixed [`no-single-composition`] triggering errors when using spread arguments.
## [2.1.0] - 2016-10-10
- NOTE: This was published as a `minor` version by accident. It should have been a `patch`.
### Fixed

@@ -153,3 +160,5 @@ - Fixed incorrect errors for [`use-fp`] on package names starting with `lodash-` ([#41, thanks [@penny-five])

[Unreleased]: https://github.com/jfmengels/eslint-plugin-lodash-fp/compare/v2.0.1...master
[Unreleased]: https://github.com/jfmengels/eslint-plugin-lodash-fp/compare/v2.1.1...master
[2.1.1]: https://github.com/jfmengels/eslint-plugin-lodash-fp/compare/v2.1.0...v2.1.1
[2.1.0]: https://github.com/jfmengels/eslint-plugin-lodash-fp/compare/v2.0.1...v2.1.0
[2.0.1]: https://github.com/jfmengels/eslint-plugin-lodash-fp/compare/v2.0.0...v2.0.1

@@ -156,0 +165,0 @@ [2.0.0]: https://github.com/jfmengels/eslint-plugin-lodash-fp/compare/v1.3.0...v2.0.0

4

package.json
{
"name": "eslint-plugin-lodash-fp",
"version": "2.1.0",
"version": "2.1.1",
"description": "ESLint rules for lodash/fp",

@@ -49,3 +49,3 @@ "license": "MIT",

"pify": "^2.3.0",
"xo": "*"
"xo": "^0.17.0"
},

@@ -52,0 +52,0 @@ "peerDependencies": {

@@ -47,3 +47,3 @@ 'use strict';

const findName = _.curry(function _findName(methods, method) {
const findName = _.curry(function (methods, method) {
return _.find(_.eq(method.name), _.isArray(methods) ? methods : [methods]) && method;

@@ -88,3 +88,3 @@ });

const isMethodOf = _.curry(function _isMethodOf(methods, node) {
const isMethodOf = _.curry(function (methods, node) {
const method = isMethod(node);

@@ -94,3 +94,3 @@ return method && findName(methods, method);

const isAnyMethodOf = _.curry(function _isAnyMethodOf(methods, node) {
const isAnyMethodOf = _.curry(function (methods, node) {
const method = isAnyMethod(node);

@@ -104,3 +104,3 @@ return method && findName(methods, method);

const isMethodCallOf = _.curry(function _isMethodCallOf(methods, node) {
const isMethodCallOf = _.curry(function (methods, node) {
const method = isMethodCall(node);

@@ -111,3 +111,3 @@ return method && findName(methods, method);

// Is `X.Y` a Lodash method?
const isMember = _.curry(function _isMember(node) {
const isMember = _.curry(function (node) {
return isMemberExpression(node) &&

@@ -123,3 +123,3 @@ isIdentifier(node.object) &&

const getComposeMethodArgMethods = _.curry(function _getComposeMethodArgMethods(name, node) {
const getComposeMethodArgMethods = _.curry(function (name, node) {
const methodNames = node.arguments.map(function (arg) {

@@ -126,0 +126,0 @@ return isMethodCall(arg) || isMember(arg);

'use strict';
module.exports = function isStaticRequire(node) {
module.exports = function (node) {
return node &&

@@ -5,0 +5,0 @@ node.callee &&

'use strict';
const _ = require('lodash/fp');
const enhance = require('./core/enhance');

@@ -10,3 +11,3 @@

CallExpression: function (node) {
if (node.arguments.length > 1) {
if (node.arguments.length > 1 || _.get([0, 'type'], node.arguments) === 'SpreadElement') {
return;

@@ -13,0 +14,0 @@ }

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc