UNPKG

eslint-plugin-lodash

Version:

Lodash specific linting rules for ESLint

206 lines (205 loc) 6.37 kB
'use strict'; module.exports = { aliases: { each: 'forEach', extend: 'assign', head: 'first', object: 'zipObject', tail: 'rest', unique: 'uniq', foldl: 'reduce', inject: 'reduce', foldr: 'reduceRight', any: 'some', collect: 'map', contains: 'includes', include: 'includes', backflow: 'flowRight', compose: 'flowRight', eq: 'isEqual', all: 'every', detect: 'find', eachRight: 'forEachRight', select: 'filter', methods: 'functions', iteratee: 'callback' }, wrapper: ['concat', 'join', 'pop', 'push', 'reverse', 'shift', 'slice', 'sort', 'splice', 'unshift', 'replace', 'split'], wrapperAliases: { run: 'value', toJSON: 'value', valueOf: 'value' }, shorthand: ['dropRightWhile', 'dropWhile', 'findIndex', 'findLastIndex', 'remove', 'sortedIndex', 'sortedLastIndex', 'map', 'takeRightWhile', 'takeWhile', 'uniq', 'countBy', 'every', 'filter', 'find', 'result', 'groupBy', 'indexBy', 'partition', 'reject', 'some', 'sortBy', 'sortByOrder', 'max', 'min', 'sum', 'findKey', 'findLastKey', 'mapValues'], chainable: ['after', 'ary', 'assign', 'at', 'before', 'bind', 'bindAll', 'bindKey', 'callback', 'chain', 'chunk', 'commit', 'compact', 'concat', 'constant', 'countBy', 'create', 'curry', 'debounce', 'defaults', 'defaultsDeep', 'defer', 'delay', 'difference', 'drop', 'dropRight', 'dropRightWhile', 'dropWhile', 'fill', 'filter', 'flatten', 'flattenDeep', 'flow', 'flowRight', 'forEach', 'forEachRight', 'forIn', 'forInRight', 'forOwn', 'forOwnRight', 'functions', 'groupBy', 'indexBy', 'initial', 'intersection', 'invert', 'invoke', 'keys', 'keysIn', 'map', 'mapKeys', 'mapValues', 'matches', 'matchesProperty', 'memoize', 'merge', 'method', 'methodOf', 'mixin', 'modArgs', 'negate', 'omit', 'once', 'pairs', 'partial', 'partialRight', 'partition', 'pick', 'plant', 'pluck', 'property', 'propertyOf', 'pull', 'pullAt', 'push', 'range', 'rearg', 'reject', 'remove', 'rest', 'restParam', 'reverse', 'set', 'shuffle', 'slice', 'sort', 'sortBy', 'sortByAll', 'sortByOrder', 'splice', 'spread', 'take', 'takeRight', 'takeRightWhile', 'takeWhile', 'tap', 'throttle', 'thru', 'times', 'toArray', 'toPlainObject', 'transform', 'union', 'uniq', 'unshift', 'unzip', 'unzipWith', 'values', 'valuesIn', 'where', 'without', 'wrap', 'xor', 'zip', 'zipObject', 'zipWith'], iteratee: { any: ['dropRightWhile', 'dropWhile', 'findIndex', 'findLastIndex', 'remove', 'sortedIndex', 'sortedLastIndex', 'takeRightWhile', 'takeWhile', 'uniq', 'unzipWith', 'zipWith', 'tap', 'thru', 'countBy', 'every', 'filter', 'find', 'findLast', 'forEach', 'forEachRight', 'groupBy', 'indexBy', 'map', 'partition', 'reduce', 'reduceRight', 'reject', 'some', 'sortBy', 'max', 'min', 'sum', 'findKey', 'findLastKey', 'forIn', 'forInRight', 'forOwn', 'forOwnRight', 'mapKeys', 'mapValues', 'transform', 'times'], differentIndex: { sortedIndex: 2, sortedLastIndex: 2 } }, args: { chunk: 2, compact: 1, drop: 2, dropRight: 2, dropRightWhile: 3, dropWhile: 3, fill: 4, findIndex: 3, findLastIndex: 3, first: 1, flatten: 2, flattenDeep: 1, fromIndex: 3, initial: 1, last: 1, lastIndexOf: 3, remove: 3, rest: 1, slice: 3, sortedIndex: 4, sortedLastIndex: 4, take: 2, takeRight: 2, takeRightWhile: 3, takeWhile: 3, uniq: 4, unzip: 1, unzipWith: 3, zipObject: 2, tap: 3, thru: 3, countBy: 3, every: 3, filter: 3, find: 3, findLast: 3, findWhere: 2, forEach: 3, forEachRight: 3, groupBy: 3, includes: 3, indexBy: 3, map: 3, partition: 3, pluck: 2, reduce: 4, reduceRight: 4, reject: 3, sample: 2, shuffle: 1, size: 1, some: 3, sortBy: 3, where: 2, after: 2, ary: 2, before: 2, curry: 2, curryRight: 2, debounce: 3, memoize: 2, negate: 1, once: 1, restParam: 2, spread: 1, throttle: 3, wrap: 2, clone: 4, cloneDeep: 3, gt: 2, gte: 2, isArguments: 1, isArray: 1, isBoolean: 1, isDate: 1, isElement: 1, isEmpty: 1, isEqual: 4, isError: 1, isFinite: 1, isFunction: 1, isMatch: 4, isNaN: 1, isNative: 1, isNull: 1, isNumber: 1, isObject: 1, isPlainObject: 1, isRegExp: 1, isTypedArray: 1, isUndefined: 1, lt: 2, lte: 2, toArray: 1, toPlainObject: 1, add: 2, ceil: 2, floor: 2, max: 3, min: 3, round: 2, sum: 3, inRange: 3, random: 3, create: 2, findKey: 3, findLastKey: 3, forIn: 3, forInRight: 3, forOwn: 3, forOwnRight: 3, functions: 1, get: 3, has: 2, invert: 2, keys: 1, keysIn: 1, mapKeys: 3, mapValues: 3, pairs: 1, result: 3, set: 3, transform: 4, values: 1, valuesIn: 1, camelCase: 1, capitalize: 1, deburr: 1, endsWith: 3, escape: 1, escapeRegExp: 1, kebabCase: 1, pad: 3, padLeft: 3, padRight: 3, parseInt: 2, repeat: 2, snakeCase: 2, startCase: 2, startsWith: 3, template: 2, trim: 2, trimLeft: 2, trimRight: 2, trunc: 3, unescape: 1, words: 2, callback: 2, constant: 1, identity: 1, matches: 1, matchesProperty: 2, mixin: 3, noConflict: 0, noop: 0, property: 1, propertyOf: 1, range: 3, runInContext: 1, times: 3, uniqueId: 1 } };