eslint-plugin-lodash
Advanced tools
Comparing version 2.1.6 to 2.1.7
@@ -11,4 +11,13 @@ # Change Log | ||
[unreleased]: https://github.com/wix/eslint-plugin-lodash/compare/v2.1.6...HEAD | ||
[unreleased]: https://github.com/wix/eslint-plugin-lodash/compare/v2.1.7...HEAD | ||
## [2.1.7] - 2016-10-27 | ||
### Fixed | ||
- Fixed `preferred-alias` erronous warning on `_.toString`. ([`d1df139`][d1df139]) | ||
- Fixed crash in `prefer-over-quantifier` ([`caf5b8a`][caf5b8a]) | ||
[d1df139]: https://github.com/wix/eslint-plugin-lodash/commit/d1df139e3d15ebb5610393b6b3f0c241a7087459 | ||
[caf5b8a]: https://github.com/wix/eslint-plugin-lodash/commit/caf5b8aff6b67a9f841938263ea8857ca0fa1453 | ||
[2.1.7]: https://github.com/wix/eslint-plugin-lodash/compare/v2.1.7...v2.1.6 | ||
## [2.1.6] - 2016-10-22 | ||
@@ -15,0 +24,0 @@ ### Fixed |
@@ -50,3 +50,3 @@ /** | ||
if (node.type === 'CallExpression') { | ||
return usesShorthandInChain(node) && node.arguments[0].name === paramName; | ||
return usesShorthandInChain(node) && node.arguments[0] && node.arguments[0].name === paramName; | ||
} | ||
@@ -53,0 +53,0 @@ if (node.type === 'LogicalExpression') { |
@@ -21,6 +21,2 @@ /** | ||
var _require2 = require('../util/astUtil'); | ||
var getMethodName = _require2.getMethodName; | ||
var _require$getSettings = require('../util/settingsUtil').getSettings(context); | ||
@@ -31,2 +27,3 @@ | ||
var aliases = require('../util/methodDataUtil').getAliasesByVersion(version); | ||
var has = require('lodash/has'); | ||
@@ -36,3 +33,3 @@ return getLodashMethodVisitors(context, function (node, iteratee, _ref) { | ||
if (aliases[method]) { | ||
if (has(aliases, method)) { | ||
context.report({ | ||
@@ -39,0 +36,0 @@ node: node, |
{ | ||
"name": "eslint-plugin-lodash", | ||
"version": "2.1.6", | ||
"version": "2.1.7", | ||
"author": "Omer Ganim <ganimomer@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "Lodash specific linting rules for ESLint", |
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
168150
3185