Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Dec 31, 2021
1 parent 0af4450 commit cb1654b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"docs": "vitepress dev packages",
"docs:serve": "vitepress serve packages",
"docs:build": "nr update:full && vitepress build packages && nr build:redirects && esno scripts/post-docs.ts",
"lint": "eslint './{packages,scripts,meta}/**/*.{js,ts,tsx,vue,md,json}'",
"lint": "eslint --ext=js,ts,tsx,vue,md,json .",
"lint:fix": "nr lint --fix",
"publish:ci": "esno scripts/publish.ts",
"release": "esno scripts/release.ts && git push --follow-tags",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/useAsyncState/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export function useAsyncState<T>(
error.value = e
onError(e)
}

isLoading.value = false
return state.value
}
Expand Down
2 changes: 1 addition & 1 deletion packages/rxjs/from/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function from<T>(value: ObservableInput<T> | Ref<T>, watchOptions?: Watch
}

export function fromEvent<T extends HTMLElement>(value: Ref<T>, event: string): Observable<Event> {
return from(value, {immediate: true}).pipe(
return from(value, { immediate: true }).pipe(
filter(value => value instanceof HTMLElement),
mergeMap(value => fromEventRx(value, event)),
)
Expand Down

0 comments on commit cb1654b

Please sign in to comment.