chore: lint + include tsx files for lint

This commit is contained in:
Evan You
2019-10-14 15:07:43 -04:00
parent c0adcb5669
commit 37cbd0098d
6 changed files with 10 additions and 16 deletions

View File

@@ -50,10 +50,8 @@ function injectHook(
const createHook = <T extends Function = () => any>(
lifecycle: LifecycleHooks
) => (
hook: T,
target: ComponentInternalInstance | null = currentInstance
) => injectHook(lifecycle, hook, target)
) => (hook: T, target: ComponentInternalInstance | null = currentInstance) =>
injectHook(lifecycle, hook, target)
export const onBeforeMount = createHook(LifecycleHooks.BEFORE_MOUNT)
export const onMounted = createHook(LifecycleHooks.MOUNTED)

View File

@@ -16,10 +16,7 @@ export function renderList(
}
} else if (isObject(source)) {
if (source[Symbol.iterator as any]) {
ret = Array.from(
source as Iterable<any>,
renderItem
)
ret = Array.from(source as Iterable<any>, renderItem)
} else {
const keys = Object.keys(source)
ret = new Array(keys.length)