Socket
Socket
Sign inDemoInstall

eslint-plugin-lodash-fp

Package Overview
Dependencies
94
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.1 to 2.1.2

16

CHANGELOG.md

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

## [2.1.2] - 2016-11-03
### Fixed
- Fixed [`no-extraneous-function-wrapping`] not handling some constructs (now uses [ast-utils](https://github.com/jfmengels/ast-utils)).
## [2.1.1] - 2016-10-14
### Fixed
- 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`.
### NOTE
- This was published as a `minor` version by accident. It should have been a `patch`.
### Fixed

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

- **Breaking**: Removed support for Node.js versions < v4.
### Fixed

@@ -31,2 +39,3 @@ - Fixed documentation for [`prefer-composition-grouping`].

- Added an exception for [`_.bindAll`] in [`no-unused-result`] ([#36], thanks [@dfadler]).
### Changed

@@ -52,5 +61,7 @@ - Removed [`eslint`] as a dependency.

- Added [`preferred-alias`] rule
### Fixed
- [`no-extraneous-args`] now also handles aliases.
- Fixed crash in [`no-extraneous-function-wrapping`].
### Changed

@@ -163,3 +174,4 @@ - [`no-extraneous-args`] now recommends an alternative whenever possible, and tells when to use an array for method that used rest args.

[Unreleased]: https://github.com/jfmengels/eslint-plugin-lodash-fp/compare/v2.1.1...master
[Unreleased]: https://github.com/jfmengels/eslint-plugin-lodash-fp/compare/v2.1.2...master
[2.1.2]: https://github.com/jfmengels/eslint-plugin-lodash-fp/compare/v2.1.1...v2.1.2
[2.1.1]: https://github.com/jfmengels/eslint-plugin-lodash-fp/compare/v2.1.0...v2.1.1

@@ -166,0 +178,0 @@ [2.1.0]: https://github.com/jfmengels/eslint-plugin-lodash-fp/compare/v2.0.1...v2.1.0

3

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

@@ -37,2 +37,3 @@ "license": "MIT",

"dependencies": {
"ast-utils": "^1.0.0",
"create-eslint-index": "^1.0.0",

@@ -39,0 +40,0 @@ "enhance-visitors": "^1.0.0",

'use strict';
const _ = require('lodash/fp');
const astUtils = require('ast-utils');
const enhance = require('./core/enhance');
const ci = require('./core/contains-identifier');

@@ -37,5 +37,5 @@ const isFunction = _.flow(

// or if `lastArgName` is used somewhere else in the function
ci.containsIdentifier(lastArgName, callExpression.callee) ||
astUtils.containsIdentifier(lastArgName, callExpression.callee) ||
// or in `lastArgName` is used among the other arguments
ci.someContainsIdentifier(lastArgName, _.initial(callExpression.arguments))
astUtils.someContainIdentifier(lastArgName, _.initial(callExpression.arguments))
) {

@@ -42,0 +42,0 @@ return false;

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