Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-lodash

Package Overview
Dependencies
Maintainers
3
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-lodash - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

19

CHANGELOG.md

@@ -11,7 +11,22 @@ # Change Log

[unreleased]: https://github.com/wix/eslint-plugin-lodash/compare/v1.0.2...HEAD
[unreleased]: https://github.com/wix/eslint-plugin-lodash/compare/v1.0.4...HEAD
## [1.0.4] - 2016-02-04
### Added
- Fixed error with rule `prefer-filter` when `_` isn't lodash ([`95c3d46`][95c3d46])
[95c3d46]: https://github.com/wix/eslint-plugin-lodash/commit/95c3d46470a7c922cde355f2dd3a3e4b6983fcc3
[1.0.4]: https://github.com/wix/eslint-plugin-lodash/compare/v1.0.4...v1.0.3
## [1.0.3] - 2016-01-31
### Added
- Added support for ESLint 2 ecmaFeatures syntax ([`7a68c45`][7a68c45])
[7a68c45]: https://github.com/wix/eslint-plugin-lodash/commit/7a68c455c5f28c29fe2a01089df0db5ee82b98a0
[1.0.3]: https://github.com/wix/eslint-plugin-lodash/compare/v1.0.3...v1.0.2
## [1.0.2] - 2016-01-27
### Fixed
- Fixed error where rules assume second arg is iteratee when it isn't (e.g. `callback-binding`) ([`b3bd896`][b3bd896]
- Fixed error where rules assume second arg is iteratee when it isn't (e.g. `callback-binding`) ([`b3bd896`][b3bd896])

@@ -18,0 +33,0 @@ [b3bd896]: https://github.com/wix/eslint-plugin-lodash/commit/b3bd89614fb4db86f819ca95e351466da6083419

2

lib/rules/prefer-filter.js

@@ -29,3 +29,3 @@ /**

var firstLine = astUtil.getFirstFunctionLine(func);
return astUtil.hasOnlyOneStatement(func) && func.params.length === 1 && isIfWithoutElse(firstLine) && canBeShorthand(firstLine.test, astUtil.getFirstParamName(func));
return func && astUtil.hasOnlyOneStatement(func) && func.params.length === 1 && isIfWithoutElse(firstLine) && canBeShorthand(firstLine.test, astUtil.getFirstParamName(func));
}

@@ -32,0 +32,0 @@

{
"name": "eslint-plugin-lodash",
"version": "1.0.3",
"version": "1.0.4",
"author": "Omer Ganim <ganimomer@gmail.com>",

@@ -5,0 +5,0 @@ "description": "Lodash specific linting rules for ESLint",

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