eslint-plugin-lodash
Advanced tools
Comparing version 2.5.0 to 2.5.1
@@ -11,4 +11,11 @@ # Change Log | ||
[unreleased]: https://github.com/wix/eslint-plugin-lodash/compare/v2.5.0...HEAD | ||
[unreleased]: https://github.com/wix/eslint-plugin-lodash/compare/v2.5.1...HEAD | ||
## [2.5.1] - 2018-01-22 | ||
### Fixed | ||
- Fix case where collection-return erronously reports on generator functions ([`19079ef`][19079ef]) | ||
[3037b9f]: https://github.com/wix/eslint-plugin-lodash/commit/19079efa2c5584ed5e0e4f11ed97d797a405f9f8 | ||
[2.5.1]: https://github.com/wix/eslint-plugin-lodash/compare/v2.5.1...v2.5.0 | ||
## [2.5.0] - 2017-10-20 | ||
@@ -15,0 +22,0 @@ ### Added |
@@ -14,2 +14,8 @@ /** | ||
module.exports = { | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/callback-binding.md' | ||
} | ||
}, | ||
create: function create(context) { | ||
@@ -16,0 +22,0 @@ var _require = require('../util/lodashUtil'), |
@@ -15,2 +15,5 @@ /** | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/chain-style.md' | ||
}, | ||
schema: [{ | ||
@@ -17,0 +20,0 @@ enum: ['as-needed', 'implicit', 'explicit'] |
@@ -15,2 +15,5 @@ /** | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/chaining.md' | ||
}, | ||
schema: [{ | ||
@@ -17,0 +20,0 @@ enum: ['always', 'never'] |
@@ -14,2 +14,8 @@ /** | ||
module.exports = { | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/collection-method-value.md' | ||
} | ||
}, | ||
create: function create(context) { | ||
@@ -16,0 +22,0 @@ var _require = require('../util/lodashUtil'), |
@@ -14,2 +14,8 @@ /** | ||
module.exports = { | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/collection-return.md' | ||
} | ||
}, | ||
create: function create(context) { | ||
@@ -39,3 +45,3 @@ var _require = require('../util/lodashUtil'), | ||
if (isFunctionDefinitionWithBlock(iteratee) && !hasReturn && !iteratee.async) { | ||
if (isFunctionDefinitionWithBlock(iteratee) && !hasReturn && !iteratee.async && !iteratee.generator) { | ||
context.report({ node: node, message: 'Do not use _.' + method + ' without returning a value' }); | ||
@@ -42,0 +48,0 @@ } |
@@ -14,2 +14,5 @@ /** | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/consistent-compose.md' | ||
}, | ||
schema: [{ | ||
@@ -16,0 +19,0 @@ enum: possibleDirections |
@@ -16,2 +16,5 @@ /** | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/identity-shorthand.md' | ||
}, | ||
schema: [{ | ||
@@ -18,0 +21,0 @@ enum: ['always', 'never'] |
@@ -49,2 +49,5 @@ /** | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/import-scope.md' | ||
}, | ||
schema: [{ | ||
@@ -54,2 +57,3 @@ enum: ['method', 'member', 'full', 'method-package'] | ||
}, | ||
create: function create(context) { | ||
@@ -56,0 +60,0 @@ var importType = context.options[0] || 'method'; |
@@ -15,2 +15,5 @@ /** | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/matches-prop-shorthand.md' | ||
}, | ||
schema: [{ | ||
@@ -17,0 +20,0 @@ enum: ['always', 'never'] |
@@ -15,2 +15,5 @@ /** | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/matches-shorthand.md' | ||
}, | ||
schema: [{ | ||
@@ -17,0 +20,0 @@ enum: ['always', 'never'] |
@@ -14,2 +14,8 @@ /** | ||
module.exports = { | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/no-commit.md' | ||
} | ||
}, | ||
create: function create(context) { | ||
@@ -16,0 +22,0 @@ var _require = require('../util/lodashUtil'), |
@@ -15,4 +15,8 @@ /** | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/no-double-unwrap.md' | ||
}, | ||
fixable: "code" | ||
}, | ||
create: function create(context) { | ||
@@ -19,0 +23,0 @@ var _require = require('../util/lodashUtil'), |
@@ -14,2 +14,8 @@ /** | ||
module.exports = { | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/no-extra-args.md' | ||
} | ||
}, | ||
create: function create(context) { | ||
@@ -16,0 +22,0 @@ var _require$getSettings = require('../util/settingsUtil').getSettings(context), |
@@ -10,2 +10,8 @@ /** | ||
module.exports = { | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/no-unbound-this.md' | ||
} | ||
}, | ||
create: function create(context) { | ||
@@ -12,0 +18,0 @@ var _require = require('../util/lodashUtil'), |
@@ -15,2 +15,5 @@ /** | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/path-style.md' | ||
}, | ||
schema: [{ | ||
@@ -17,0 +20,0 @@ enum: ['as-needed', 'array', 'string'] |
@@ -14,2 +14,8 @@ /** | ||
module.exports = { | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-compact.md' | ||
} | ||
}, | ||
create: function create(context) { | ||
@@ -16,0 +22,0 @@ var _require = require('../util/lodashUtil'), |
@@ -15,2 +15,6 @@ /** | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-constant.md' | ||
}, | ||
schema: [{ | ||
@@ -17,0 +21,0 @@ type: 'boolean' |
@@ -15,2 +15,5 @@ /** | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-filter.md' | ||
}, | ||
schema: [{ | ||
@@ -17,0 +20,0 @@ type: 'integer' |
@@ -14,2 +14,8 @@ /** | ||
module.exports = { | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-flat-map.md' | ||
} | ||
}, | ||
create: function create(context) { | ||
@@ -16,0 +22,0 @@ var _require = require('../util/lodashUtil'), |
@@ -15,2 +15,5 @@ /** | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-get.md' | ||
}, | ||
schema: [{ | ||
@@ -17,0 +20,0 @@ type: 'integer', |
@@ -15,2 +15,5 @@ /** | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-includes.md' | ||
}, | ||
schema: [{ | ||
@@ -17,0 +20,0 @@ type: 'object', |
@@ -12,3 +12,5 @@ /** | ||
meta: { | ||
docs: {} | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-invoke-map.md' | ||
} | ||
}, | ||
@@ -15,0 +17,0 @@ |
@@ -14,2 +14,8 @@ /** | ||
module.exports = { | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-is-nil.md' | ||
} | ||
}, | ||
create: function create(context) { | ||
@@ -16,0 +22,0 @@ var _require = require('../util/astUtil'), |
@@ -14,2 +14,8 @@ /** | ||
module.exports = { | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-lodash-chain.md' | ||
} | ||
}, | ||
create: function create(context) { | ||
@@ -16,0 +22,0 @@ var _require = require('../util/lodashUtil'), |
@@ -12,2 +12,5 @@ /** | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-lodash-method.md' | ||
}, | ||
schema: [{ | ||
@@ -14,0 +17,0 @@ type: 'object', |
@@ -14,2 +14,8 @@ /** | ||
module.exports = { | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-lodash-typecheck.md' | ||
} | ||
}, | ||
create: function create(context) { | ||
@@ -16,0 +22,0 @@ var some = require('lodash/some'); |
@@ -14,2 +14,8 @@ /** | ||
module.exports = { | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-map.md' | ||
} | ||
}, | ||
create: function create(context) { | ||
@@ -16,0 +22,0 @@ var _require = require('../util/lodashUtil'), |
@@ -15,2 +15,5 @@ /** | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-matches.md' | ||
}, | ||
schema: [{ | ||
@@ -17,0 +20,0 @@ type: 'integer', |
@@ -14,2 +14,8 @@ /** | ||
module.exports = { | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-noop.md' | ||
} | ||
}, | ||
create: function create(context) { | ||
@@ -16,0 +22,0 @@ var _require = require('../util/astUtil'), |
@@ -14,2 +14,8 @@ /** | ||
module.exports = { | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-over-quantifier.md' | ||
} | ||
}, | ||
create: function create(context) { | ||
@@ -16,0 +22,0 @@ var _require = require('../util/lodashUtil'), |
@@ -15,2 +15,5 @@ /** | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-reject.md' | ||
}, | ||
schema: [{ | ||
@@ -17,0 +20,0 @@ type: 'integer' |
@@ -15,2 +15,5 @@ /** | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-some.md' | ||
}, | ||
schema: [{ | ||
@@ -17,0 +20,0 @@ type: 'object', |
@@ -14,2 +14,8 @@ /** | ||
module.exports = { | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-startswith.md' | ||
} | ||
}, | ||
create: function create(context) { | ||
@@ -16,0 +22,0 @@ var _require = require('../util/astUtil'), |
@@ -14,2 +14,8 @@ /** | ||
module.exports = { | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-thru.md' | ||
} | ||
}, | ||
create: function create(context) { | ||
@@ -16,0 +22,0 @@ var _require = require('../util/lodashUtil'), |
@@ -14,2 +14,8 @@ /** | ||
module.exports = { | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-times.md' | ||
} | ||
}, | ||
create: function create(context) { | ||
@@ -16,0 +22,0 @@ var _require = require('../util/lodashUtil'), |
@@ -14,2 +14,8 @@ /** | ||
module.exports = { | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-wrapper-method.md' | ||
} | ||
}, | ||
create: function create(context) { | ||
@@ -16,0 +22,0 @@ var _require = require('../util/lodashUtil'), |
@@ -14,3 +14,7 @@ /** | ||
module.exports = { | ||
meta: {}, | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/preferred-alias.md' | ||
} | ||
}, | ||
@@ -17,0 +21,0 @@ create: function create(context) { |
@@ -16,2 +16,5 @@ /** | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prop-shorthand.md' | ||
}, | ||
schema: [{ | ||
@@ -18,0 +21,0 @@ enum: ['always', 'never'] |
@@ -11,2 +11,8 @@ /** | ||
module.exports = { | ||
meta: { | ||
docs: { | ||
url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/unwrap.md' | ||
} | ||
}, | ||
create: function create(context) { | ||
@@ -13,0 +19,0 @@ var _require = require('../util/lodashUtil'), |
{ | ||
"name": "eslint-plugin-lodash", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"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
255000
7132