From 69e7386a995391d395929638c24721337e4fe7e3 Mon Sep 17 00:00:00 2001 From: Landon Abney Date: Tue, 9 Jan 2018 00:30:40 -0800 Subject: [PATCH] Add URL to rule documentation to the metadata ESLint v4.15.0 added an official location for rules to store a URL to their documentation in the rule metadata in eslint/eslint#9788. This adds the URL to all the existing rules so anything consuming them can know where their documentation is without having to resort to external packages to guess. --- src/rules/callback-binding.js | 6 ++++++ src/rules/chain-style.js | 5 ++++- src/rules/chaining.js | 3 +++ src/rules/collection-method-value.js | 6 ++++++ src/rules/collection-return.js | 6 ++++++ src/rules/consistent-compose.js | 5 ++++- src/rules/identity-shorthand.js | 3 +++ src/rules/import-scope.js | 4 ++++ src/rules/matches-prop-shorthand.js | 3 +++ src/rules/matches-shorthand.js | 3 +++ src/rules/no-commit.js | 6 ++++++ src/rules/no-double-unwrap.js | 4 ++++ src/rules/no-extra-args.js | 6 ++++++ src/rules/no-unbound-this.js | 6 ++++++ src/rules/path-style.js | 5 ++++- src/rules/prefer-compact.js | 6 ++++++ src/rules/prefer-constant.js | 4 ++++ src/rules/prefer-filter.js | 5 ++++- src/rules/prefer-flat-map.js | 8 +++++++- src/rules/prefer-get.js | 5 ++++- src/rules/prefer-includes.js | 5 ++++- src/rules/prefer-invoke-map.js | 6 ++++-- src/rules/prefer-is-nil.js | 6 ++++++ src/rules/prefer-lodash-chain.js | 6 ++++++ src/rules/prefer-lodash-method.js | 3 +++ src/rules/prefer-lodash-typecheck.js | 6 ++++++ src/rules/prefer-map.js | 6 ++++++ src/rules/prefer-matches.js | 5 ++++- src/rules/prefer-noop.js | 6 ++++++ src/rules/prefer-over-quantifier.js | 8 +++++++- src/rules/prefer-reject.js | 5 ++++- src/rules/prefer-some.js | 4 +++- src/rules/prefer-startswith.js | 6 ++++++ src/rules/prefer-thru.js | 6 ++++++ src/rules/prefer-times.js | 6 ++++++ src/rules/prefer-wrapper-method.js | 6 ++++++ src/rules/preferred-alias.js | 7 +++++-- src/rules/prop-shorthand.js | 3 +++ src/rules/unwrap.js | 8 +++++++- 39 files changed, 191 insertions(+), 16 deletions(-) diff --git a/src/rules/callback-binding.js b/src/rules/callback-binding.js index ee76243..b27c22a 100644 --- a/src/rules/callback-binding.js +++ b/src/rules/callback-binding.js @@ -11,6 +11,12 @@ // ------------------------------------------------------------------------------ module.exports = { + meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/callback-binding.md' + } + }, + create(context) { const {getLodashMethodVisitors} = require('../util/lodashUtil') const {getFunctionMaxArity} = require('../util/methodDataUtil') diff --git a/src/rules/chain-style.js b/src/rules/chain-style.js index e43783e..cbb6745 100644 --- a/src/rules/chain-style.js +++ b/src/rules/chain-style.js @@ -11,6 +11,9 @@ //------------------------------------------------------------------------------ module.exports = { meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/chain-style.md' + }, schema: [{ enum: ['as-needed', 'implicit', 'explicit'] }] @@ -53,4 +56,4 @@ module.exports = { visitors.CallExpression = callExpressionVisitors[context.options[0] || 'as-needed'] return visitors } -} \ No newline at end of file +} diff --git a/src/rules/chaining.js b/src/rules/chaining.js index c8db206..1805019 100644 --- a/src/rules/chaining.js +++ b/src/rules/chaining.js @@ -12,6 +12,9 @@ module.exports = { meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/chaining.md' + }, schema: [{ enum: ['always', 'never'] }, { diff --git a/src/rules/collection-method-value.js b/src/rules/collection-method-value.js index fc72bcf..c3c72a1 100644 --- a/src/rules/collection-method-value.js +++ b/src/rules/collection-method-value.js @@ -10,6 +10,12 @@ // Rule Definition //------------------------------------------------------------------------------ module.exports = { + meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/collection-method-value.md' + } + }, + create(context) { const {isChainBreaker, getLodashMethodVisitors, isCallToMethod} = require('../util/lodashUtil') const {getMethodName} = require('../util/astUtil') diff --git a/src/rules/collection-return.js b/src/rules/collection-return.js index 0c2ec3e..dd59cf3 100644 --- a/src/rules/collection-return.js +++ b/src/rules/collection-return.js @@ -11,6 +11,12 @@ //------------------------------------------------------------------------------ module.exports = { + meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/collection-return.md' + } + }, + create(context) { const {getLodashMethodCallExpVisitor, getLodashContext} = require('../util/lodashUtil') const {isCollectionMethod} = require('../util/methodDataUtil') diff --git a/src/rules/consistent-compose.js b/src/rules/consistent-compose.js index 426662b..28b9d33 100644 --- a/src/rules/consistent-compose.js +++ b/src/rules/consistent-compose.js @@ -10,6 +10,9 @@ const possibleDirections = ['pipe', 'compose', 'flow', 'flowRight'] module.exports = { meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/consistent-compose.md' + }, schema: [{ enum: possibleDirections }] @@ -37,4 +40,4 @@ module.exports = { } }) } -} \ No newline at end of file +} diff --git a/src/rules/identity-shorthand.js b/src/rules/identity-shorthand.js index f2a861f..aa979dd 100644 --- a/src/rules/identity-shorthand.js +++ b/src/rules/identity-shorthand.js @@ -13,6 +13,9 @@ module.exports = { meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/identity-shorthand.md' + }, schema: [{ enum: ['always', 'never'] }] diff --git a/src/rules/import-scope.js b/src/rules/import-scope.js index d501bbe..b66a303 100644 --- a/src/rules/import-scope.js +++ b/src/rules/import-scope.js @@ -34,10 +34,14 @@ const allImportsAreOfType = (node, types) => every(node.specifiers, specifier => module.exports = { meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/import-scope.md' + }, schema: [{ enum: ['method', 'member', 'full', 'method-package'] }] }, + create(context) { const importType = context.options[0] || 'method' diff --git a/src/rules/matches-prop-shorthand.js b/src/rules/matches-prop-shorthand.js index 03b6512..cb939f0 100644 --- a/src/rules/matches-prop-shorthand.js +++ b/src/rules/matches-prop-shorthand.js @@ -11,6 +11,9 @@ // ------------------------------------------------------------------------------ module.exports = { meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/matches-prop-shorthand.md' + }, schema: [{ enum: ['always', 'never'] }, { diff --git a/src/rules/matches-shorthand.js b/src/rules/matches-shorthand.js index f3a8ebd..f495fc4 100644 --- a/src/rules/matches-shorthand.js +++ b/src/rules/matches-shorthand.js @@ -12,6 +12,9 @@ module.exports = { meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/matches-shorthand.md' + }, schema: [{ enum: ['always', 'never'] }, { diff --git a/src/rules/no-commit.js b/src/rules/no-commit.js index 6f0fc6a..7d988ba 100644 --- a/src/rules/no-commit.js +++ b/src/rules/no-commit.js @@ -11,6 +11,12 @@ //------------------------------------------------------------------------------ module.exports = { + meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/no-commit.md' + } + }, + create(context) { const {getLodashContext, isCallToMethod} = require('../util/lodashUtil') const {isMethodCall} = require('../util/astUtil') diff --git a/src/rules/no-double-unwrap.js b/src/rules/no-double-unwrap.js index 1bc0f0f..8618f89 100644 --- a/src/rules/no-double-unwrap.js +++ b/src/rules/no-double-unwrap.js @@ -12,8 +12,12 @@ module.exports = { meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/no-double-unwrap.md' + }, fixable: "code" }, + create(context) { const {getLodashContext, isChainBreaker, isChainable} = require('../util/lodashUtil') const {isMethodCall, getCaller, getMethodName} = require('../util/astUtil') diff --git a/src/rules/no-extra-args.js b/src/rules/no-extra-args.js index dc983ef..edad9e6 100644 --- a/src/rules/no-extra-args.js +++ b/src/rules/no-extra-args.js @@ -11,6 +11,12 @@ //------------------------------------------------------------------------------ module.exports = { + meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/no-extra-args.md' + } + }, + create(context) { const {version} = require('../util/settingsUtil').getSettings(context) const {getLodashMethodVisitors} = require('../util/lodashUtil') diff --git a/src/rules/no-unbound-this.js b/src/rules/no-unbound-this.js index c84833c..bc1bd0b 100644 --- a/src/rules/no-unbound-this.js +++ b/src/rules/no-unbound-this.js @@ -7,6 +7,12 @@ //------------------------------------------------------------------------------ module.exports = { + meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/no-unbound-this.md' + } + }, + create(context) { const {getLodashMethodCallExpVisitor, getLodashContext} = require('../util/lodashUtil') const {isCollectionMethod} = require('../util/methodDataUtil') diff --git a/src/rules/path-style.js b/src/rules/path-style.js index 5a1bfdf..e847deb 100644 --- a/src/rules/path-style.js +++ b/src/rules/path-style.js @@ -12,6 +12,9 @@ module.exports = { meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/path-style.md' + }, schema: [{ enum: ['as-needed', 'array', 'string'] }] @@ -110,4 +113,4 @@ module.exports = { } }) } -} \ No newline at end of file +} diff --git a/src/rules/prefer-compact.js b/src/rules/prefer-compact.js index 0ef1029..e193b14 100644 --- a/src/rules/prefer-compact.js +++ b/src/rules/prefer-compact.js @@ -11,6 +11,12 @@ //------------------------------------------------------------------------------ module.exports = { + meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-compact.md' + } + }, + create(context) { const {getLodashMethodVisitors} = require('../util/lodashUtil') const {isNegationExpression, isIdentifierWithName, getValueReturnedInFirstStatement, getFirstParamName} = require('../util/astUtil') diff --git a/src/rules/prefer-constant.js b/src/rules/prefer-constant.js index 73a7067..ff609be 100644 --- a/src/rules/prefer-constant.js +++ b/src/rules/prefer-constant.js @@ -12,6 +12,10 @@ module.exports = { meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-constant.md' + }, + schema: [{ type: 'boolean' }, { diff --git a/src/rules/prefer-filter.js b/src/rules/prefer-filter.js index a93b82a..a7066f4 100644 --- a/src/rules/prefer-filter.js +++ b/src/rules/prefer-filter.js @@ -12,6 +12,9 @@ module.exports = { meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-filter.md' + }, schema: [{ type: 'integer' }] @@ -54,4 +57,4 @@ module.exports = { } }) } -} \ No newline at end of file +} diff --git a/src/rules/prefer-flat-map.js b/src/rules/prefer-flat-map.js index c65af8b..c81155c 100644 --- a/src/rules/prefer-flat-map.js +++ b/src/rules/prefer-flat-map.js @@ -11,6 +11,12 @@ //------------------------------------------------------------------------------ module.exports = { + meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-flat-map.md' + } + }, + create(context) { const {getLodashMethodVisitors, isCallToMethod, isCallToLodashMethod} = require('../util/lodashUtil') const {getCaller} = require('../util/astUtil') @@ -28,4 +34,4 @@ module.exports = { } }) } -} \ No newline at end of file +} diff --git a/src/rules/prefer-get.js b/src/rules/prefer-get.js index 4a28b8c..057b7a8 100644 --- a/src/rules/prefer-get.js +++ b/src/rules/prefer-get.js @@ -12,6 +12,9 @@ module.exports = { meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-get.md' + }, schema: [{ type: 'integer', minimum: 2 @@ -52,4 +55,4 @@ module.exports = { } } } -} \ No newline at end of file +} diff --git a/src/rules/prefer-includes.js b/src/rules/prefer-includes.js index 6a06e36..251a73b 100644 --- a/src/rules/prefer-includes.js +++ b/src/rules/prefer-includes.js @@ -12,6 +12,9 @@ module.exports = { meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-includes.md' + }, schema: [{ type: 'object', properties: { @@ -42,4 +45,4 @@ module.exports = { } return visitors } -} \ No newline at end of file +} diff --git a/src/rules/prefer-invoke-map.js b/src/rules/prefer-invoke-map.js index ff83744..79844d7 100644 --- a/src/rules/prefer-invoke-map.js +++ b/src/rules/prefer-invoke-map.js @@ -9,7 +9,9 @@ module.exports = { meta: { - docs: {} + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-invoke-map.md' + } }, create(context) { @@ -33,4 +35,4 @@ module.exports = { } }) } -} \ No newline at end of file +} diff --git a/src/rules/prefer-is-nil.js b/src/rules/prefer-is-nil.js index 68a4147..15335cc 100644 --- a/src/rules/prefer-is-nil.js +++ b/src/rules/prefer-is-nil.js @@ -11,6 +11,12 @@ //------------------------------------------------------------------------------ module.exports = { + meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-is-nil.md' + } + }, + create(context) { const {isNegationExpression, isEquivalentMemberExp} = require('../util/astUtil') const {isCallToLodashMethod, getLodashContext} = require('../util/lodashUtil') diff --git a/src/rules/prefer-lodash-chain.js b/src/rules/prefer-lodash-chain.js index c5f18b4..9f1630f 100644 --- a/src/rules/prefer-lodash-chain.js +++ b/src/rules/prefer-lodash-chain.js @@ -11,6 +11,12 @@ //------------------------------------------------------------------------------ module.exports = { + meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-lodash-chain.md' + } + }, + create(context) { const {getLodashContext, isChainBreaker, isNativeCollectionMethodCall, isLodashWrapperMethod} = require('../util/lodashUtil') const {isMethodCall, isObjectOfMethodCall, getMethodName} = require('../util/astUtil') diff --git a/src/rules/prefer-lodash-method.js b/src/rules/prefer-lodash-method.js index 7007fd0..b7ec0f2 100644 --- a/src/rules/prefer-lodash-method.js +++ b/src/rules/prefer-lodash-method.js @@ -9,6 +9,9 @@ module.exports = { meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-lodash-method.md' + }, schema: [{ type: 'object', properties: { diff --git a/src/rules/prefer-lodash-typecheck.js b/src/rules/prefer-lodash-typecheck.js index 0c0c41b..aa4b3d8 100644 --- a/src/rules/prefer-lodash-typecheck.js +++ b/src/rules/prefer-lodash-typecheck.js @@ -11,6 +11,12 @@ //------------------------------------------------------------------------------ module.exports = { + meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-lodash-typecheck.md' + } + }, + create(context) { const some = require('lodash/some') const {getIsTypeMethod} = require('../util/lodashUtil') diff --git a/src/rules/prefer-map.js b/src/rules/prefer-map.js index ba70209..9b77592 100644 --- a/src/rules/prefer-map.js +++ b/src/rules/prefer-map.js @@ -11,6 +11,12 @@ //------------------------------------------------------------------------------ module.exports = { + meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-map.md' + } + }, + create(context) { const {getLodashMethodVisitors} = require('../util/lodashUtil') const {getFirstFunctionLine, hasOnlyOneStatement, getMethodName, isFunctionDefinitionWithBlock, collectParameterValues} = require('../util/astUtil') diff --git a/src/rules/prefer-matches.js b/src/rules/prefer-matches.js index 2b3ad9c..b314ddc 100644 --- a/src/rules/prefer-matches.js +++ b/src/rules/prefer-matches.js @@ -12,6 +12,9 @@ module.exports = { meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-matches.md' + }, schema: [{ type: 'integer', minimum: 2 @@ -56,4 +59,4 @@ module.exports = { } } } -} \ No newline at end of file +} diff --git a/src/rules/prefer-noop.js b/src/rules/prefer-noop.js index 02afaa6..a402ea9 100644 --- a/src/rules/prefer-noop.js +++ b/src/rules/prefer-noop.js @@ -11,6 +11,12 @@ //------------------------------------------------------------------------------ module.exports = { + meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-noop.md' + } + }, + create(context) { const {getFirstFunctionLine} = require('../util/astUtil') diff --git a/src/rules/prefer-over-quantifier.js b/src/rules/prefer-over-quantifier.js index 3a1db40..b4c9719 100644 --- a/src/rules/prefer-over-quantifier.js +++ b/src/rules/prefer-over-quantifier.js @@ -11,6 +11,12 @@ //------------------------------------------------------------------------------ module.exports = { + meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-over-quantifier.md' + } + }, + create(context) { const {getLodashMethodVisitors} = require('../util/lodashUtil') const {getValueReturnedInFirstStatement, getFirstParamName, isObjectOfMethodCall, getMethodName} = require('../util/astUtil') @@ -73,4 +79,4 @@ module.exports = { } }) } -} \ No newline at end of file +} diff --git a/src/rules/prefer-reject.js b/src/rules/prefer-reject.js index 7fe91e0..38a0f25 100644 --- a/src/rules/prefer-reject.js +++ b/src/rules/prefer-reject.js @@ -12,6 +12,9 @@ module.exports = { meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-reject.md' + }, schema: [{ type: 'integer' }] @@ -37,4 +40,4 @@ module.exports = { } }) } -} \ No newline at end of file +} diff --git a/src/rules/prefer-some.js b/src/rules/prefer-some.js index d235b52..0e10250 100644 --- a/src/rules/prefer-some.js +++ b/src/rules/prefer-some.js @@ -12,6 +12,9 @@ module.exports = { meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-some.md' + }, schema: [{ type: 'object', properties: { @@ -22,7 +25,6 @@ module.exports = { }] }, - create(context) { const includeNative = context.options[0] && context.options[0].includeNative const {getExpressionComparedToInt, isFindIndexCall} = require('../util/astUtil') diff --git a/src/rules/prefer-startswith.js b/src/rules/prefer-startswith.js index de48a93..f71940d 100644 --- a/src/rules/prefer-startswith.js +++ b/src/rules/prefer-startswith.js @@ -11,6 +11,12 @@ //------------------------------------------------------------------------------ module.exports = { + meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-startswith.md' + } + }, + create(context) { const {isIndexOfCall, getExpressionComparedToInt} = require('../util/astUtil') return { diff --git a/src/rules/prefer-thru.js b/src/rules/prefer-thru.js index 8594208..8bfc48b 100644 --- a/src/rules/prefer-thru.js +++ b/src/rules/prefer-thru.js @@ -11,6 +11,12 @@ //------------------------------------------------------------------------------ module.exports = { + meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-thru.md' + } + }, + create(context) { const {getLodashContext} = require('../util/lodashUtil') const lodashContext = getLodashContext(context) diff --git a/src/rules/prefer-times.js b/src/rules/prefer-times.js index caf185c..91210d4 100644 --- a/src/rules/prefer-times.js +++ b/src/rules/prefer-times.js @@ -11,6 +11,12 @@ //------------------------------------------------------------------------------ module.exports = { + meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-times.md' + } + }, + create(context) { const {getLodashMethodVisitors} = require('../util/lodashUtil') const {isAliasOfMethod} = require('../util/methodDataUtil') diff --git a/src/rules/prefer-wrapper-method.js b/src/rules/prefer-wrapper-method.js index e6a9c5e..7df12a5 100644 --- a/src/rules/prefer-wrapper-method.js +++ b/src/rules/prefer-wrapper-method.js @@ -11,6 +11,12 @@ //------------------------------------------------------------------------------ module.exports = { + meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prefer-wrapper-method.md' + } + }, + create(context) { const {isLodashWrapperMethod, getLodashContext} = require('../util/lodashUtil') const lodashContext = getLodashContext(context) diff --git a/src/rules/preferred-alias.js b/src/rules/preferred-alias.js index c11425f..d290375 100644 --- a/src/rules/preferred-alias.js +++ b/src/rules/preferred-alias.js @@ -11,7 +11,11 @@ //------------------------------------------------------------------------------ module.exports = { - meta: {}, + meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/preferred-alias.md' + } + }, create(context) { const {getLodashMethodVisitors} = require('../util/lodashUtil') @@ -31,4 +35,3 @@ module.exports = { }) } } - diff --git a/src/rules/prop-shorthand.js b/src/rules/prop-shorthand.js index 05c4b36..d71659f 100644 --- a/src/rules/prop-shorthand.js +++ b/src/rules/prop-shorthand.js @@ -13,6 +13,9 @@ module.exports = { meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/prop-shorthand.md' + }, schema: [{ enum: ['always', 'never'] }] diff --git a/src/rules/unwrap.js b/src/rules/unwrap.js index 1710114..49faf89 100644 --- a/src/rules/unwrap.js +++ b/src/rules/unwrap.js @@ -8,6 +8,12 @@ // ------------------------------------------------------------------------------ module.exports = { + meta: { + docs: { + url: 'https://github.com/wix/eslint-plugin-lodash/tree/master/docs/rules/unwrap.md' + } + }, + create(context) { const {getLodashContext, isChainable, isCallToMethod, isChainBreaker} = require('../util/lodashUtil') const {getCaller} = require('../util/astUtil') @@ -43,4 +49,4 @@ module.exports = { } return visitors } -} \ No newline at end of file +}