chore: prettier all ts code

This commit is contained in:
陈嘉涵
2020-01-19 15:27:28 +08:00
parent 04c49b645a
commit 207e80f396
19 changed files with 124 additions and 68 deletions
+5 -1
View File
@@ -10,7 +10,11 @@ function assignKey(to: ObjectIndex, from: ObjectIndex, key: string) {
return;
}
if (!hasOwnProperty.call(to, key) || !isObj(val) || typeof val === 'function') {
if (
!hasOwnProperty.call(to, key) ||
!isObj(val) ||
typeof val === 'function'
) {
to[key] = val;
} else {
// eslint-disable-next-line no-use-before-define