lodash: Apply new lint rules (#15491)

This commit is contained in:
Andy
2017-03-29 15:41:22 -07:00
committed by GitHub
parent a38d4c657d
commit efecc1d637
289 changed files with 322 additions and 364 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
import { add } from "../index";
export = add;
export = add;
+1 -1
View File
@@ -1,2 +1,2 @@
import { after } from "../index";
export = after;
export = after;
+1 -1
View File
@@ -1,2 +1,2 @@
import { ary } from "../index";
export = ary;
export = ary;
+1 -1
View File
@@ -1,2 +1,2 @@
import { assign } from "../index";
export = assign;
export = assign;
+1 -1
View File
@@ -1,2 +1,2 @@
import { assignIn } from "../index";
export = assignIn;
export = assignIn;
+1 -1
View File
@@ -1,2 +1,2 @@
import { assignInWith } from "../index";
export = assignInWith;
export = assignInWith;
+1 -1
View File
@@ -1,2 +1,2 @@
import { assignWith } from "../index";
export = assignWith;
export = assignWith;
+1 -1
View File
@@ -1,2 +1,2 @@
import { at } from "../index";
export = at;
export = at;
+1 -1
View File
@@ -1,2 +1,2 @@
import { attempt } from "../index";
export = attempt;
export = attempt;
+1 -1
View File
@@ -1,2 +1,2 @@
import { before } from "../index";
export = before;
export = before;
+1 -1
View File
@@ -1,2 +1,2 @@
import { bind } from "../index";
export = bind;
export = bind;
+1 -1
View File
@@ -1,2 +1,2 @@
import { bindAll } from "../index";
export = bindAll;
export = bindAll;
+1 -1
View File
@@ -1,2 +1,2 @@
import { bindKey } from "../index";
export = bindKey;
export = bindKey;
+1 -1
View File
@@ -1,2 +1,2 @@
import { camelCase } from "../index";
export = camelCase;
export = camelCase;
+1 -1
View File
@@ -1,2 +1,2 @@
import { capitalize } from "../index";
export = capitalize;
export = capitalize;
+1 -1
View File
@@ -1,2 +1,2 @@
import { castArray } from "../index";
export = castArray;
export = castArray;
+1 -1
View File
@@ -1,2 +1,2 @@
import { ceil } from "../index";
export = ceil;
export = ceil;
+1 -1
View File
@@ -1,2 +1,2 @@
import { chain } from "../index";
export = chain;
export = chain;
+1 -1
View File
@@ -1,2 +1,2 @@
import { chunk } from "../index";
export = chunk;
export = chunk;
+1 -1
View File
@@ -1,2 +1,2 @@
import { clamp } from "../index";
export = clamp;
export = clamp;
+1 -1
View File
@@ -1,2 +1,2 @@
import { clone } from "../index";
export = clone;
export = clone;
+1 -1
View File
@@ -1,2 +1,2 @@
import { cloneDeep } from "../index";
export = cloneDeep;
export = cloneDeep;
+1 -1
View File
@@ -1,2 +1,2 @@
import { cloneDeepWith } from "../index";
export = cloneDeepWith;
export = cloneDeepWith;
+1 -1
View File
@@ -1,2 +1,2 @@
import { cloneWith } from "../index";
export = cloneWith;
export = cloneWith;
+1 -1
View File
@@ -1,2 +1,2 @@
import { compact } from "../index";
export = compact;
export = compact;
+1 -1
View File
@@ -1,2 +1,2 @@
import { concat } from "../index";
export = concat;
export = concat;
+1 -1
View File
@@ -1,2 +1,2 @@
import { constant } from "../index";
export = constant;
export = constant;
+1 -1
View File
@@ -1,2 +1,2 @@
import { countBy } from "../index";
export = countBy;
export = countBy;
+1 -1
View File
@@ -1,2 +1,2 @@
import { create } from "../index";
export = create;
export = create;
+1 -1
View File
@@ -1,2 +1,2 @@
import { curry } from "../index";
export = curry;
export = curry;
+1 -1
View File
@@ -1,2 +1,2 @@
import { curryRight } from "../index";
export = curryRight;
export = curryRight;
+1 -1
View File
@@ -1,2 +1,2 @@
import { debounce } from "../index";
export = debounce;
export = debounce;
+1 -1
View File
@@ -1,2 +1,2 @@
import { deburr } from "../index";
export = deburr;
export = deburr;
+1 -1
View File
@@ -1,2 +1,2 @@
import { defaults } from "../index";
export = defaults;
export = defaults;
+1 -1
View File
@@ -1,2 +1,2 @@
import { defaultsDeep } from "../index";
export = defaultsDeep;
export = defaultsDeep;
+1 -1
View File
@@ -1,2 +1,2 @@
import { defer } from "../index";
export = defer;
export = defer;
+1 -1
View File
@@ -1,2 +1,2 @@
import { delay } from "../index";
export = delay;
export = delay;
+1 -1
View File
@@ -1,2 +1,2 @@
import { difference } from "../index";
export = difference;
export = difference;
+1 -1
View File
@@ -1,2 +1,2 @@
import { differenceBy } from "../index";
export = differenceBy;
export = differenceBy;
+1 -1
View File
@@ -1,2 +1,2 @@
import { differenceWith } from "../index";
export = differenceWith;
export = differenceWith;
+1 -1
View File
@@ -1,2 +1,2 @@
import { drop } from "../index";
export = drop;
export = drop;
+1 -1
View File
@@ -1,2 +1,2 @@
import { dropRight } from "../index";
export = dropRight;
export = dropRight;
+1 -1
View File
@@ -1,2 +1,2 @@
import { dropRightWhile } from "../index";
export = dropRightWhile;
export = dropRightWhile;
+1 -1
View File
@@ -1,2 +1,2 @@
import { dropWhile } from "../index";
export = dropWhile;
export = dropWhile;
+1 -1
View File
@@ -1,2 +1,2 @@
import { each } from "../index";
export = each;
export = each;
+1 -1
View File
@@ -1,2 +1,2 @@
import { eachRight } from "../index";
export = eachRight;
export = eachRight;
+1 -1
View File
@@ -1,2 +1,2 @@
import { endsWith } from "../index";
export = endsWith;
export = endsWith;
+1 -1
View File
@@ -1,2 +1,2 @@
import { eq } from "../index";
export = eq;
export = eq;
+1 -1
View File
@@ -1,2 +1,2 @@
import { escape } from "../index";
export = escape;
export = escape;
+1 -1
View File
@@ -1,2 +1,2 @@
import { escapeRegExp } from "../index";
export = escapeRegExp;
export = escapeRegExp;
+1 -1
View File
@@ -1,2 +1,2 @@
import { every } from "../index";
export = every;
export = every;
+1 -1
View File
@@ -1,2 +1,2 @@
import { extend } from "../index";
export = extend;
export = extend;
+1 -1
View File
@@ -1,2 +1,2 @@
import { extendWith } from "../index";
export = extendWith;
export = extendWith;
+1 -1
View File
@@ -1,2 +1,2 @@
import { fill } from "../index";
export = fill;
export = fill;
+1 -1
View File
@@ -1,2 +1,2 @@
import { filter } from "../index";
export = filter;
export = filter;
+1 -1
View File
@@ -1,2 +1,2 @@
import { find } from "../index";
export = find;
export = find;
+1 -1
View File
@@ -1,2 +1,2 @@
import { findIndex } from "../index";
export = findIndex;
export = findIndex;
+1 -1
View File
@@ -1,2 +1,2 @@
import { findKey } from "../index";
export = findKey;
export = findKey;
+1 -1
View File
@@ -1,2 +1,2 @@
import { findLast } from "../index";
export = findLast;
export = findLast;
+1 -1
View File
@@ -1,2 +1,2 @@
import { findLastIndex } from "../index";
export = findLastIndex;
export = findLastIndex;
+1 -1
View File
@@ -1,2 +1,2 @@
import { findLastKey } from "../index";
export = findLastKey;
export = findLastKey;
+1 -1
View File
@@ -1,2 +1,2 @@
import { first } from "../index";
export = first;
export = first;
+1 -1
View File
@@ -1,2 +1,2 @@
import { flatMap } from "../index";
export = flatMap;
export = flatMap;
+1 -1
View File
@@ -1,2 +1,2 @@
import { flatten } from "../index";
export = flatten;
export = flatten;
+1 -1
View File
@@ -1,2 +1,2 @@
import { flattenDeep } from "../index";
export = flattenDeep;
export = flattenDeep;
+1 -1
View File
@@ -1,2 +1,2 @@
import { flattenDepth } from "../index";
export = flattenDepth;
export = flattenDepth;
+1 -1
View File
@@ -1,2 +1,2 @@
import { flip } from "../index";
export = flip;
export = flip;
+1 -1
View File
@@ -1,2 +1,2 @@
import { floor } from "../index";
export = floor;
export = floor;
+1 -1
View File
@@ -1,2 +1,2 @@
import { flow } from "../index";
export = flow;
export = flow;
+1 -1
View File
@@ -1,2 +1,2 @@
import { flowRight } from "../index";
export = flowRight;
export = flowRight;
+1 -1
View File
@@ -1,2 +1,2 @@
import { forEach } from "../index";
export = forEach;
export = forEach;
+1 -1
View File
@@ -1,2 +1,2 @@
import { forEachRight } from "../index";
export = forEachRight;
export = forEachRight;
+1 -1
View File
@@ -1,2 +1,2 @@
import { forIn } from "../index";
export = forIn;
export = forIn;
+1 -1
View File
@@ -1,2 +1,2 @@
import { forInRight } from "../index";
export = forInRight;
export = forInRight;
+1 -1
View File
@@ -1,2 +1,2 @@
import { forOwn } from "../index";
export = forOwn;
export = forOwn;
+1 -1
View File
@@ -1,2 +1,2 @@
import { forOwnRight } from "../index";
export = forOwnRight;
export = forOwnRight;
+1 -1
View File
@@ -1,2 +1,2 @@
import { fromPairs } from "../index";
export = fromPairs;
export = fromPairs;
+1 -1
View File
@@ -1,2 +1,2 @@
import { functions } from "../index";
export = functions;
export = functions;
+1 -1
View File
@@ -1,2 +1,2 @@
import { functionsIn } from "../index";
export = functionsIn;
export = functionsIn;
+1 -1
View File
@@ -1,2 +1,2 @@
import { get } from "../index";
export = get;
export = get;
+1 -1
View File
@@ -1,2 +1,2 @@
import { groupBy } from "../index";
export = groupBy;
export = groupBy;
+1 -1
View File
@@ -1,2 +1,2 @@
import { gt } from "../index";
export = gt;
export = gt;
+1 -1
View File
@@ -1,2 +1,2 @@
import { gte } from "../index";
export = gte;
export = gte;
+1 -1
View File
@@ -1,2 +1,2 @@
import { has } from "../index";
export = has;
export = has;
+1 -1
View File
@@ -1,2 +1,2 @@
import { hasIn } from "../index";
export = hasIn;
export = hasIn;
+1 -1
View File
@@ -1,2 +1,2 @@
import { head } from "../index";
export = head;
export = head;
+1 -1
View File
@@ -1,2 +1,2 @@
import { identity } from "../index";
export = identity;
export = identity;
+1 -1
View File
@@ -1,2 +1,2 @@
import { inRange } from "../index";
export = inRange;
export = inRange;
+1 -1
View File
@@ -1,2 +1,2 @@
import { includes } from "../index";
export = includes;
export = includes;
+1 -17
View File
@@ -43,7 +43,6 @@ changes:
- [x] Made _.capitalize uppercase the first character & lowercase the rest
- [x] Made _.functions return only own method names
added 23 array methods:
- [x] _.concat
- [x] _.differenceBy
@@ -101,7 +100,6 @@ added 13 object methods:
- [x] _.omitBy
- [x] _.pickBy
added 8 string methods:
- [x] _.lowerCase
- [x] _.lowerFirst
@@ -237,7 +235,6 @@ Methods:
- [ ] _.next
*/
export = _;
export as namespace _;
@@ -246,7 +243,6 @@ declare var _: _.LoDashStatic;
type PartialObject<T> = Partial<T>;
declare namespace _ {
type Many<T> = T | T[];
interface LoDashStatic {
@@ -3202,11 +3198,9 @@ declare namespace _ {
sortedIndex<W, T>(
value: T
): LoDashExplicitWrapper<number>;
}
//_.sortedIndexBy
// _.sortedIndexBy
interface LoDashStatic {
/**
* This method is like `_.sortedIndex` except that it accepts `iteratee`
@@ -8662,7 +8656,6 @@ declare namespace _ {
reduce<T, TResult>(
collection: NumericDictionary<T>,
callback: MemoIterator<T, TResult>): TResult;
}
interface LoDashImplicitArrayWrapper<T> {
@@ -9248,7 +9241,6 @@ declare namespace _ {
predicate?: string|[string, any]
): boolean;
/**
* @see _.some
*/
@@ -10517,7 +10509,6 @@ declare namespace _ {
flowRight<TResult extends Function>(...funcs: Function[]): LoDashExplicitObjectWrapper<TResult>;
}
//_.memoize
interface MemoizedFunction extends Function {
cache: MapCache;
@@ -11163,7 +11154,6 @@ declare namespace _ {
}
interface LoDashImplicitArrayWrapper<T> {
/**
* @see _.clone
*/
@@ -11185,7 +11175,6 @@ declare namespace _ {
}
interface LoDashExplicitArrayWrapper<T> {
/**
* @see _.clone
*/
@@ -13875,7 +13864,6 @@ declare namespace _ {
end: number
): boolean;
/**
* @see _.inRange
*/
@@ -14720,7 +14708,6 @@ declare namespace _ {
create<U extends Object>(properties?: U): LoDashExplicitObjectWrapper<T & U>;
}
//_.defaults
interface LoDashStatic {
/**
@@ -16593,7 +16580,6 @@ declare namespace _ {
}
interface LoDashImplicitObjectWrapper<T> {
/**
* @see _.omit
*/
@@ -16603,7 +16589,6 @@ declare namespace _ {
}
interface LoDashExplicitObjectWrapper<T> {
/**
* @see _.omit
*/
@@ -19498,7 +19483,6 @@ declare namespace _ {
}
}
// Backward compatibility with --target es5
declare global {
interface Set<T> { }
+1 -1
View File
@@ -1,2 +1,2 @@
import { indexOf } from "../index";
export = indexOf;
export = indexOf;
+1 -1
View File
@@ -1,2 +1,2 @@
import { initial } from "../index";
export = initial;
export = initial;
+1 -1
View File
@@ -1,2 +1,2 @@
import { intersection } from "../index";
export = intersection;
export = intersection;
+1 -1
View File
@@ -1,2 +1,2 @@
import { intersectionBy } from "../index";
export = intersectionBy;
export = intersectionBy;
+1 -1
View File
@@ -1,2 +1,2 @@
import { intersectionWith } from "../index";
export = intersectionWith;
export = intersectionWith;
+1 -1
View File
@@ -1,2 +1,2 @@
import { invert } from "../index";
export = invert;
export = invert;
+1 -1
View File
@@ -1,2 +1,2 @@
import { invertBy } from "../index";
export = invertBy;
export = invertBy;
+1 -1
View File
@@ -1,2 +1,2 @@
import { invoke } from "../index";
export = invoke;
export = invoke;
+1 -1
View File
@@ -1,2 +1,2 @@
import { invokeMap } from "../index";
export = invokeMap;
export = invokeMap;
+1 -1
View File
@@ -1,2 +1,2 @@
import { isArguments } from "../index";
export = isArguments;
export = isArguments;

Some files were not shown because too many files have changed in this diff Show More