chore: upgrade eslint and prettier (#2376)

* chore: upgrade eslint and prettier

* chore: add restrict-template-expressions
This commit is contained in:
Mo
2023-07-27 14:36:05 -05:00
committed by GitHub
parent acc41edb02
commit 4a29e2a24c
1283 changed files with 4416 additions and 5131 deletions

View File

@@ -108,7 +108,7 @@ const ContentListHeader = ({
<div className="flex">
<div className="relative" ref={displayOptionsContainerRef}>
<RoundIconButton
className={classNames(showDisplayOptionsMenu && 'bg-contrast')}
className={classNames(showDisplayOptionsMenu ? 'bg-contrast' : undefined)}
onClick={toggleDisplayOptionsMenu}
ref={displayOptionsButtonRef}
icon="sort-descending"

View File

@@ -136,9 +136,9 @@ export const InfinteScroller = forwardRef<InfiniteScrollerInterface, Props>(
const _paginateFront = useCallback(() => {
if (direction === 'vertical') {
setScrollSize(scrollArea!.current!.scrollHeight)
setScrollSize(scrollArea.current!.scrollHeight)
} else {
setScrollSize(scrollArea!.current!.scrollWidth)
setScrollSize(scrollArea.current!.scrollWidth)
}
setDidPaginateFront(true)
paginateFront()