canonical
Version:
Canonical code style linter and formatter for JavaScript, SCSS, CSS and JSON.
865 lines • 21 kB
JavaScript
'use strict';
module.exports = {
3: {
aliases: {
forEach: [
'each'
],
assign: [
'extend'
],
first: [
'head'
],
zipObject: [
'object'
],
rest: [
'tail'
],
uniq: [
'unique'
],
reduce: [
'foldl',
'inject'
],
reduceRight: [
'foldr'
],
some: [
'any'
],
map: [
'collect'
],
includes: [
'contains',
'include'
],
flowRight: [
'backflow',
'compose'
],
isEqual: [
'eq'
],
every: [
'all'
],
find: [
'detect'
],
forEachRight: [
'eachRight'
],
filter: [
'select'
],
functions: [
'methods'
],
callback: [
'iteratee'
]
},
wrapper: [
'concat',
'join',
'pop',
'push',
'reverse',
'shift',
'slice',
'sort',
'splice',
'unshift',
'replace',
'split'
],
wrapperAliases: {
value: [
'run',
'toJSON',
'valueOf'
]
},
property: [
'dropRightWhile',
'dropWhile',
'findIndex',
'findLastIndex',
'remove',
'sortedIndex',
'sortedIndex',
'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,
attempt: 1,
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
}
},
4: {
aliases: {
head: [
'first'
],
forEach: [
'each'
],
forEachRight: [
'eachRight'
],
assignIn: [
'extend'
],
assignInWith: [
'extendWith'
]
},
wrapper: [
'concat',
'join',
'pop',
'push',
'shift',
'sort',
'splice',
'unshift',
'replace',
'split'
],
wrapperAliases: {
value: [
'toJSON',
'valueOf'
]
},
property: [
'differenceBy',
'dropRightWhile',
'dropWhile',
'every',
'filter',
'find',
'findIndex',
'findKey',
'findLastKey',
'findLastIndex',
'groupBy',
'intersectionBy',
'map',
'mapValues',
'maxBy',
'minBy',
'partition',
'reject',
'some',
'sortedIndexBy',
'sortedLastIndexBy',
'sumBy',
'takeRightWhile',
'takeWhile',
'unionBy',
'uniqBy',
'xorBy'
],
chainable: [
'after',
'ary',
'assign',
'assignIn',
'assignInWith',
'assignWith',
'at',
'before',
'bind',
'bindAll',
'bindKey',
'chain',
'chunk',
'commit',
'compact',
'concat',
'conforms',
'constant',
'countBy',
'create',
'curry',
'debounce',
'defaults',
'defaultsDeep',
'defer',
'delay',
'difference',
'differenceBy',
'differenceWith',
'drop',
'dropRight',
'dropRightWhile',
'dropWhile',
'fill',
'filter',
'flatten',
'flattenDeep',
'flip',
'flow',
'flowRight',
'forEach',
'forEachRight',
'forIn',
'forInRight',
'forOwn',
'forOwnRight',
'fromPairs',
'functions',
'functionsIn',
'groupBy',
'initial',
'intersection',
'intersectionBy',
'intersectionWith',
'invert',
'invokeMap',
'iteratee',
'keyBy',
'keys',
'keysIn',
'map',
'mapKeys',
'mapValues',
'matches',
'matchesProperty',
'memoize',
'merge',
'mergeWith',
'method',
'methodOf',
'mixin',
'negate',
'nthArg',
'omit',
'omitBy',
'once',
'orderBy',
'over',
'overArgs',
'overEvery',
'overSome',
'partial',
'partialRight',
'partition',
'pick',
'pickBy',
'plant',
'property',
'propertyOf',
'pull',
'pullAll',
'pullAllBy',
'pullAt',
'push',
'range',
'rangeRight',
'rearg',
'reject',
'remove',
'rest',
'reverse',
'sampleSize',
'set',
'setWith',
'shuffle',
'slice',
'sort',
'sortBy',
'splice',
'spread',
'tail',
'take',
'takeRight',
'takeRightWhile',
'takeWhile',
'tap',
'throttle',
'thru',
'toArray',
'toPairs',
'toPairsIn',
'toPath',
'toPlainObject',
'transform',
'unary',
'union',
'unionBy',
'unionWith',
'uniq',
'uniqBy',
'uniqWith',
'unset',
'unshift',
'unzip',
'unzipWith',
'values',
'valuesIn',
'without',
'wrap',
'xor',
'xorBy',
'xorWith',
'zip',
'zipObject',
'zipWith'
],
iteratee: {
any: ['dropRightWhile', 'dropWhile', 'findIndex', 'findLastIndex', 'flatMap', 'pullAllBy', 'remove', 'sortedIndexBy', 'sortedLastIndexBy', 'sortedUniqBy', 'takeRightWhile',
'takeWhile', 'uniqBy', 'unzipWith', 'xorBy', 'zipWith', 'countBy', 'every', 'filter', 'find', 'findLast', 'forEach', 'forEachRight', 'groupBy', 'indexBy', 'keyBy', 'map', 'partition', 'reduce',
'reduceRight', 'reject', 'some', 'tap', 'thru', 'maxBy', 'minBy', 'sumBy', 'findKey', 'findLastKey', 'forIn', 'forInRight', 'forOwn', 'forOwnRight', 'mapKeys',
'mapValues', 'omitBy', 'pickBy', 'transform', 'times', 'cloneDeepWith', 'cloneWith'],
differentIndex: {
sortedIndex: 2,
sortedLastIndex: 2,
pullAllBy: 2
}
},
args: {
chunk: 2,
compact: 1,
drop: 2,
dropRight: 2,
dropRightWhile: 3,
dropWhile: 3,
fill: 4,
findIndex: 2,
findLastIndex: 2,
flatten: 1,
flattenDeep: 1,
flattenDepth: 2,
fromPairs: 1,
head: 1,
indexOf: 3,
initial: 1,
join: 2,
last: 1,
lastIndexOf: 3,
pullAll: 2,
pullAllBy: 3,
remove: 2,
reverse: 1,
slice: 3,
sortedIndex: 2,
sortedIndexBy: 3,
sortedIndexOf: 2,
sortedLastIndex: 2,
sortedLastIndexBy: 3,
sortedLastIndexOf: 2,
sortedUniq: 1,
sortedUniqBy: 2,
tail: 1,
take: 2,
takeRight: 2,
takeRightWhile: 2,
takeWhile: 2,
uniq: 1,
uniqBy: 2,
uniqWith: 2,
unzip: 1,
unzipWith: 2,
zipObject: 2,
zipObjectDeep: 2,
countBy: 2,
every: 2,
filter: 2,
find: 2,
findLast: 2,
flatMap: 2,
forEach: 2,
forEachRight: 2,
groupBy: 2,
includes: 3,
keyBy: 2,
map: 2,
orderBy: 3,
partition: 2,
reduce: 3,
reduceRight: 3,
reject: 2,
sample: 1,
sampleSize: 2,
shuffle: 1,
size: 1,
some: 2,
now: 0,
after: 2,
ary: 2,
before: 2,
curry: 2,
curryRight: 2,
debounce: 3,
flip: 1,
memoize: 2,
negate: 1,
once: 1,
rest: 2,
spread: 2,
throttle: 3,
unary: 1,
wrap: 2,
castArray: 1,
clone: 1,
cloneDeep: 1,
cloneDeepWith: 2,
cloneWith: 2,
eq: 2,
gt: 2,
gte: 2,
isArguments: 1,
isArray: 1,
isArrayBuffer: 1,
isArrayLike: 1,
isArrayLikeObject: 1,
isBoolean: 1,
isBuffer: 1,
isDate: 1,
isElement: 1,
isEmpty: 1,
isEqual: 2,
isEqualWith: 3,
isError: 1,
isFinite: 1,
isFunction: 1,
isInteger: 1,
isLength: 1,
isMatch: 2,
isMatchWith: 3,
isNaN: 1,
isNative: 1,
isNil: 1,
isNull: 1,
isNumber: 1,
isObject: 1,
isObjectLike: 1,
isPlainObject: 1,
isRegExp: 1,
isSafeInteger: 1,
isSet: 1,
isString: 1,
isSymbol: 1,
isTypedArray: 1,
isUndefined: 1,
isWeakMap: 1,
isWeakSet: 1,
lt: 2,
lte: 2,
toArray: 1,
toInteger: 1,
toLength: 1,
toNumber: 1,
toPlainObject: 1,
toSafeInteger: 1,
toString: 1,
add: 2,
ceil: 2,
floor: 2,
max: 1,
maxBy: 2,
mean: 1,
min: 1,
minBy: 2,
round: 2,
subtract: 2,
sum: 1,
sumBy: 2,
clamp: 3,
inRange: 3,
random: 3,
create: 2,
findKey: 2,
findLastKey: 2,
forIn: 2,
forInRight: 2,
forOwn: 2,
forOwnRight: 2,
functions: 1,
functionsIn: 1,
get: 3,
has: 2,
hasIn: 2,
invert: 1,
invertBy: 2,
keys: 1,
keysIn: 1,
mapKeys: 2,
mapValues: 2,
result: 3,
set: 3,
setWith: 4,
toPairs: 1,
toPairsIn: 1,
transform: 3,
unset: 2,
values: 1,
valuesIn: 1,
chain: 1,
tap: 2,
thru: 2,
camelCase: 1,
capitalize: 1,
deburr: 1,
endsWith: 3,
escape: 1,
escapeRegExp: 1,
kebabCase: 1,
lowerCase: 1,
lowerFirst: 1,
pad: 3,
padEnd: 3,
padStart: 3,
parseInt: 2,
repeat: 2,
snakeCase: 1,
split: 3,
startCase: 1,
startsWith: 3,
template: 2,
toLower: 1,
toUpper: 1,
trim: 2,
trimEnd: 2,
trimStart: 2,
truncate: 3,
unescape: 1,
upperCase: 1,
upperFirst: 1,
words: 2,
attempt: 1,
cond: 1,
conforms: 1,
constant: 1,
identity: 1,
matches: 1,
matchesProperty: 2,
mixin: 3,
noConflict: 0,
noop: 0,
nthArg: 1,
property: 1,
propertyOf: 1,
range: 3,
rangeRight: 3,
runInContext: 1,
times: 2,
toPath: 1,
uniqueId: 1
}
}
};